MbMenu

MbMenu is an extension to CMenu wich provides you a nice dropdown menu.

Requirements

Installation

Usage

The usage of this extension is allmost the same as CMenu. The menu shown at this page is created using this code:

	<?php $this->widget('application.extensions.mbmenu.MbMenu',array(
			'items'=>array(
				array('label'=>'Home', 'url'=>array('/site/index')),
				array('label'=>'Contact', 'url'=>array('/site/contact'),
				  'items'=>array(
				    array('label'=>'sub 1 contact'),
				    array('label'=>'sub 2 contact'),
				  ),
				),
				array('label'=>'Test',
				  'items'=>array(
				    array('label'=>'Sub 1', 'url'=>array('/site/page','view'=>'sub1')),
				    array('label'=>'Sub 2',
				      'items'=>array(
				        array('label'=>'Sub sub 1', 'url'=>array('/site/page','view'=>'subsub1')),
				        array('label'=>'Sub sub 2', 'url'=>array('/site/page','view'=>'subsub2')),
				      ),
				    ),
				  ),
				),
			),
	)); ?>

It's just that simple!