Hi Chris,
Boot modal is not opening in Internet explorer.
Is there any solution for this. Thanks
Hi Chris,
Boot modal is not opening in Internet explorer.
Is there any solution for this. Thanks
Chris,
awesome extension! Thank you for working so hard on it and continuing to improve it.
I’m having a syntax issue that I’m not sure how to resolve in a buttonGroup.
I am trying to move this link into a button group:
<?php echo CHtml::link('Import History',array('distriupload/upload'), array('submit'=>array('distriupload/upload'),'params'=>array('reg_id'=>$model->registration_id,'fund_id'=>$model->fund_id),'class'=>'btn alt1'));?>
The above code works great and posts the correct information to the controller on click.
I am trying to move that link into a button group. Here is what I currently have:
<?php $this->widget('ext.bootstrap.widgets.BootButtonGroup', array(
'type'=>'action',
'buttons'=>array(
array('label'=>'Update Investment','items'=>array(
array(
'label'=>'Import History',
'url'=>array('distriupload/upload'),
'htmlOptions'=>array('submit'=>array('distriupload/upload'),'params'=>array('reg_id'=>$model->registration_id,'fund_id'=>$model->fund_id)),
),
)),
),
)); ?>
The link works and directs me to the correct page, however the POST data is empty so I believe the htmlOptions are not being set. Am I missing something here? Thank you!
Hello
I need to have a response. thanks you a lot
cyphos,
I had the same issue, but it was because I was overwriting the bootstrap css with my theme’s css. If you open up view source on one of your pages, make sure bootstraps css is the last css stylesheet loaded.
Hey all.
Navbar collapse is not working. How solve this? I Have to include responsive manually?
My code:
$this->widget(‘bootstrap.widgets.BootNavbar’, array(
'fixed'=>true,
'fluid'=>true,
'brand'=>'...',
'brandUrl'=>'...',
'collapse'=>true,
'items'=>array(
Hi,
Does anyone faced this problem. I am unable to open this on Internet explorer 9
Please let me know if there is any solution for this.
@cyphos and w00tw00t111: Actually it should be loaded before your own CSS so that you can override it where necessary. However, calling Bootstrap in the layout is not the normal way as it is loaded automatically when you enable the extension. So unless you intended to load it manually please remove the registerCss and/or registerResponsiveCss calls from your layout.
You need to set ‘responsiveCss’ to true in your app config (defaults to false) in order for the bootstrap-responsive.css to be registered.
Thank you for good extension!
Can i make link in BootButtonGroup with confirm dialog?
As well here:
CHtml::link(‘Delete2’, ‘#’, array(
'submit'=>array('item/delete','id'=>$data->id),
'confirm' => 'Are you sure?',
));
Hii Chris,
Thanks for your extension and this new release =)
that awesome,
i try BootThumbnails but maybe i do something wrong or am I missing something ?
I’m having issue that I’m not sure how to resolve in a BootThumbnails
CException
The "dataProvider" property cannot be empty. (C:\Program Files\xampp\htdocs\swirf_admin\framework\zii\widgets\CBaseListView.php:131)
thanks
+1
+2
Hello w00tw00t111
This my code source for the head
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
<!-- blueprint CSS framework -->
<link rel="stylesheet" type="text/css" href="/demo2/css/bootstrap.css" media="screen, projection" />
<link rel="stylesheet" type="text/css" href="/demo2/css/print.css" media="print" />
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="/demo2/css/ie.css" media="screen, projection" />
<![endif]-->
<link rel="stylesheet" type="text/css" href="/demo2/css/main.css" />
<link rel="stylesheet" type="text/css" href="/demo2/css/form.css" />
<link rel="stylesheet" type="text/css" href="/demo2/assets/1326bc78/css/bootstrap.min.css" />
<script type="text/javascript" src="/demo2/assets/1ad4b51d/jquery.js"></script>
<title>My Web Application</title>
</head>
saska and Dyp2000,
for the time being until we find out the official way of doing this. I’ve pretty much hardcoded Bootstrap style the code for onclicks into my code. See example below:
<div class="btn-toolbar">
<div class="btn-group">
<a data-toggle="dropdown" class="btn btn-action dropdown-toggle" href="#">Update Investment <span class="caret"></span></a>
<ul class="dropdown-menu">
<li class="">
<?php
echo CHtml::link('Add Item','#',
array('onClick'=>
'addTrans._addTrans_url="' . Yii::app()->createUrl('ortransaction/create',array('investment_id'=>$model->id,'type'=>OrTransaction::TYPE_BUY)) . '";
{addTrans()};
$("#dialogAdd' . OrTransaction::TYPE_BUY .'").dialog("open");
return false;',
));
?>
</li>
<li class="">
<?php echo CHtml::link('Import Data',
array('distriupload/upload'),
array('submit'=>
array('distriupload/upload'),
'params'=>array(
'reg_id'=>$model->registration_id,
'fund_id'=>$model->fund_id
)
)
);?>
</li>
</div>
Cyphos,
2 things:
<link rel="stylesheet" type="text/css" href="/demo2/css/bootstrap.css" media="screen, projection" />
is a valid path?
@saska, Dyp2000, w00tw00t111: Here you go…
$this->widget('bootstrap.widgets.BootButtonGroup', array(
'buttons'=>array(
array('label'=>'Delete2', '#', 'htmlOptions'=>array(
'submit'=>array('item/delete', 'id'=>$data->id),
'confirm'=>'Are you sure?',
)),
),
));
I didn’t try the code but it should work.
Nice. It’s working! Thank you. But I thought this would work here:
$this->widget('bootstrap.widgets.BootMenu', array(
'type'=>'pills',
'items'=>array(
array('label'=>'Delete2', '#', 'htmlOptions'=>array(
'submit'=>array('item/delete', 'id'=>3),
'confirm'=>'Are you sure?',
)),
)
));
Have any ideas?
Yes, when i asked about confirmation dialog, i have same question had in mind: how make dialog confirmation in items link of BootButtonGroup?
Hello
On first, I need to understand.
where I pu this bootstrap’s css? which directory?
I must configure the path of css in the file main.php in the layout? Or it’s automatic?
the code is exact?
'preload'=>array('log','bootstrap'),
You only need to extract the extension (preferably to extensions) and it will work.