I\'m trying to add a dropdown login form using Yii Bootstrap, like that attached tutorial, but I\'m not able to add HTML Form to TbNavbar items.
How ca
Additionally, to keep html markup to a minimum you can also use the 'template' array key:
widget('bootstrap.widgets.TbNavbar',array(
'items'=>array(
array(
'class'=>'bootstrap.widgets.TbMenu',
'htmlOptions'=>array('class'=>'pull-right'),
'items'=>array(
array('label'=>'Login', 'url'=>'#', 'visible'=>Yii::app()->user->isGuest, 'items'=>array(
array(
'label'=>'{menu}',
'template'=>''
)
)),
),
),
))); ?>
Inside the defined template string you can also use the {menu} placeholder to be replaced with your link.