Jump to content
Larry Ullman's Book Forums

How To Make Dyanamic Dropdown Menu Fetching Data From Database Using Bootstrap Navbar


Vipin Semwal
 Share

Recommended Posts

<div id="mainmenu">

<?php $this->widget('bootstrap.widgets.TbNavbar', array(

'type'=>'null', // null or 'inverse'

'brand'=>'',

'brandUrl'=>'',

'collapse'=>true, // requires bootstrap-responsive.css

'items'=>array(

array(

'class'=>'bootstrap.widgets.TbMenu',

'items'=>array(

//array('label'=>'Home', 'url'=>array('/site/index')),

//array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),

array('label'=>'Dropdown', 'url'=>'#', 'items'=>array(

array('label'=>'Action', 'url'=>'#'),

array('label'=>'Another action', 'url'=>'#'),

array('label'=>'Something else here', 'url'=>'#'),

'---',

array('label'=>'NAV HEADER'),

array('label'=>'Separated link', 'url'=>'#'),

array('label'=>'One more separated link', 'url'=>'#'),

)),

array('label'=>'Contact', 'url'=>array('/site/contact')),

),

),

),

)); ?>

</div><!--main-menu--->

Link to comment
Share on other sites

 Share

×
×
  • Create New...