php - How to active the menu of modules in yii -


i'm trying active menu of modules in yii

array(         'label'=>'manage news/events',           'url'=>array('/newsevent/newsevent/admin'),          'active'=> ((yii::app()->controller->id=='newsevent') && (in_array(yii::app()->controller->action->id,array('update','view','admin','index')))) ? true : false            ),             ),  

i've got news event module in side modules folder , trying active menu not happening


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -