Ok, found the problem.
$model->main is of type boolean, I have to change true to 1 and false to 0.
[EXTENSION] Bootstrap Yii integration for Twitter's web development toolkit
#442
Posted 20 May 2012 - 11:17 PM
Thanks Don Felipe and Alan Yii,
It's Work, now i'm in the middle of learning ajax submit. Thanks for helping me
It's Work, now i'm in the middle of learning ajax submit. Thanks for helping me
#443
Posted Yesterday, 07:44 AM
Hi
Not sure if this is a bug but after several hours I've managed to figure out why the navigation collapse isn't working on some pages. It's related to the bootstrap extension.
I'm using the less extension too so am including the css (core and responsive) in the compiled style.css which seems to be working fine. I've set them to false in the config file so they are not included and am registering the style.css manually which again is working fine. Therefore the only settings that are true are the yii css and the js. Their appearing at the top as I would expect but for some reason they are also being included at the top of the content section automatically.
I've confirmed this by setting the yii and js to false in the config and they are not included in either the top section or the content section.
Is this a bug or am I missing something?
Thanks
Lux
Did a hack in the end just to make it work correctly.
Not sure if this is a bug but after several hours I've managed to figure out why the navigation collapse isn't working on some pages. It's related to the bootstrap extension.
I'm using the less extension too so am including the css (core and responsive) in the compiled style.css which seems to be working fine. I've set them to false in the config file so they are not included and am registering the style.css manually which again is working fine. Therefore the only settings that are true are the yii css and the js. Their appearing at the top as I would expect but for some reason they are also being included at the top of the content section automatically.
<div id="content">
<link rel="stylesheet" type="text/css" href="/mcq/site/assets/27833d15/css/bootstrap-yii.css" />
<script type="text/javascript" src="/mcq/site/assets/51b0c615/jquery.js"></script>
<script type="text/javascript" src="/mcq/site/assets/27833d15/js/bootstrap.min.js"></script>
I've confirmed this by setting the yii and js to false in the config and they are not included in either the top section or the content section.
Is this a bug or am I missing something?
Thanks
Lux
Did a hack in the end just to make it work correctly.
Yii::app()->clientscript ->registerCssFile( Yii::app()->baseUrl. '/css/style.css' ); $boot = new Bootstrap(); $boot->registerYiiCss(); $boot->registerJS();
#444
Posted Yesterday, 11:15 PM
Can I have menu tab on the bottom like Tabbable?
Can I use the option 'placement' with 'bootstrap.widgets.BootMenu'?
Can I use the option 'placement' with 'bootstrap.widgets.BootMenu'?
#445
Posted Today, 12:51 AM
Hrach, on 24 May 2012 - 11:15 PM, said:
Can I have menu tab on the bottom like Tabbable?
Can I use the option 'placement' with 'bootstrap.widgets.BootMenu'?
Can I use the option 'placement' with 'bootstrap.widgets.BootMenu'?
valid values for the "placement" option are: above, below, left, right
<?php $this->widget('bootstrap.widgets.BootTabbable', array(
'type'=>'tabs',
'placement'=>'below',
'tabs'=>array(
...
),
),
)); ?>of course, it works for (types) "tabs" and "pills".
No, there's no "placement" option for BootMenu. BootMenu is a standalone menu (only links - no content), place it where you want and need it. If you need to have it fixed to the top or bottom of the page, put it inside BootNavbar and use the "fixed" option and set it to "top" and "bottom" respectively.
#447
Posted Today, 01:56 AM
Hi Guys
Anyone know how to do partial inline textfield? I don't need to whole form to be inline, i've tried,
But nothing works, any good way so that it will also keep the error message?
Anyone know how to do partial inline textfield? I don't need to whole form to be inline, i've tried,
<?php echo $form->textFieldRow($Company, 'areacode', array('type'=>'inline' ); ?>
<?php echo $form->textFieldRow($Company, 'areacode', array('labelHtmlOptions' => array("label" => false))); ?>
<?php echo $form->textFieldRow($Company, 'areacode', array('label'=>'false' ); ?>
.....
But nothing works, any good way so that it will also keep the error message?
#448
Posted Today, 02:25 AM
jasocl, on 25 May 2012 - 01:56 AM, said:
Anyone know how to do partial inline textfield?
Not quite sure what you are trying to accomplish? An inline sequence of form fields in between a horizontal or vertical form... sounds like it would look weird.
How the form elements are rendered depends on the parent form (type) and you cannot switch back and forth using 1 form element hence widget only; unless you add the inline fields manually. Also, inline form elements do not show any error messages; except the inline search if I'm not mistaken.

Help













