A simple CSS menu generator which behaves like CMenu or MbMenu. No javascript is required and all the styles can be overridden.
Yii 1.1
Copy the folder 'cssmenu' to the 'extenstions' folder in your Yii Installation
$this->widget('ext.cssmenu.CssMenu',array( 'items'=>array( array('label'=>'Home', 'url'=>array('site/index')), array('label'=>'Products', 'url'=>array('product/index'), 'items'=>array( array('label'=>'New Arrivals', 'url'=>array('product/new')), array('label'=>'Most Popular', 'url'=>array('product/index')), )), array('label'=>'Login', 'url'=>array('site/login'), 'visible'=>Yii::app()->user->isGuest), ), ));
If you have any requests or you have made some improvements, I would love for you to let me know. I have created a repository on Github.
https://github.com/mrkmg/yii-ext-cssmenu
Total 2 comments
Thank you for extension, Is there any detailes about the CSS file? exactly for i18n.
The instructions say "Copy the folder 'cssmenu' to the 'extenstions' folder in your Yii Installation"
Make sure you copy the child folder 'cssmenu' - not its parent folder 'CssMenu'.
Leave a comment
Please login to leave your comment.