[EXTENSION] Bootstrap Bringing together Yii and Twitter Bootstrap
#301
Posted 30 March 2012 - 06:48 AM
Boot modal is not opening in Internet explorer.
Is there any solution for this. Thanks
Thanks,
Yureshwar Ravuri
Mail: yureshwar@yuresh.net
Web: http://www.yuresh.net
#302
Posted 30 March 2012 - 08:27 AM
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!
#303
Posted 30 March 2012 - 08:58 AM
I need to have a response. thanks you a lot
cyphos, on 27 March 2012 - 07:21 AM, said:
I have some problems with the extension bootstrap.
I installed this extension and i configured it.
I reload the index and the theme (css, img) didn't change
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap.css" media="screen, projection" />
I think the path is bad???
Thanks you for your responses
#304
Posted 30 March 2012 - 02:23 PM
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.
#305
Posted 30 March 2012 - 02:57 PM
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(
#306
Posted 30 March 2012 - 09:59 PM
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.
yureshwar, on 30 March 2012 - 06:48 AM, said:
Boot modal is not opening in Internet explorer.
Is there any solution for this. Thanks
Thanks,
Yureshwar Ravuri
Mail: yureshwar@yuresh.net
Web: http://www.yuresh.net
#307
Posted 31 March 2012 - 06:58 AM
w00tw00t111, on 30 March 2012 - 02:23 PM, said:
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.
@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.
#308
Posted 31 March 2012 - 07:01 AM
thiagovidal, on 30 March 2012 - 02:57 PM, said:
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(
You need to set 'responsiveCss' to true in your app config (defaults to false) in order for the bootstrap-responsive.css to be registered.
#309
Posted 01 April 2012 - 07:09 AM
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?',
));
#310
Posted 01 April 2012 - 11:57 AM
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
#313
Posted 02 April 2012 - 06:37 AM
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>
w00tw00t111, on 30 March 2012 - 02:23 PM, said:
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.
#314
Posted 02 April 2012 - 07:08 AM
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>
#315
Posted 02 April 2012 - 07:11 AM
2 things:
1. Are you sure that
<link rel="stylesheet" type="text/css" href="/demo2/css/bootstrap.css" media="screen, projection" />is a valid path?
2. Use firebug / chrome and 'inspect element' your page. Where the image is, see what css file is rendering that content. If it is your main.css then you have found your problem. Main.css is overwriting your bootstrap css for this file/image/field etc. So, you can remove that line from your main.css and bootstrap.css should handle it for you.
#316
Posted 02 April 2012 - 01:58 PM
$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.
#317
Posted 02 April 2012 - 09:46 PM
Chris83, on 02 April 2012 - 01:58 PM, said:
$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?
#318
Posted 02 April 2012 - 11:44 PM
Dyp2000, on 02 April 2012 - 09:46 PM, said:
$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?
#319
Posted 03 April 2012 - 08:16 AM
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'),
w00tw00t111, on 02 April 2012 - 07:11 AM, said:
2 things:
1. Are you sure that
<link rel="stylesheet" type="text/css" href="/demo2/css/bootstrap.css" media="screen, projection" />is a valid path?
2. Use firebug / chrome and 'inspect element' your page. Where the image is, see what css file is rendering that content. If it is your main.css then you have found your problem. Main.css is overwriting your bootstrap css for this file/image/field etc. So, you can remove that line from your main.css and bootstrap.css should handle it for you.
#320
Posted 03 April 2012 - 02:35 PM
cyphos, on 03 April 2012 - 08:16 AM, said:
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.

Help












