Hi,
I’m using the zii.widgets.CMenu to display my side menu (which is generated using Gii). I want to “select” or “highlight” the menu item when I visit that. have tried passing “aciveCSSClass” but it does not work.
- The class get passe to the “CMenu” class but some it is checking for some preoperty called “$item[‘active’]” in the “renderMenuRecursive” function which dons not have a value and because of that the class does not get passed to the front end.
-
What is the stranded code for using the "aciveCSSClass" ?
-
Do I have to pass another parameter to use the "selected" links?
Below is the code I’m using currently.
$this->beginWidget('zii.widgets.CMenu',
array(
'items'=>$this->menu,
'htmlOptions'=>array('class'=>'operations'),
'activeCssClass'=>array ('selected'),// This get passe but the links do not work
));
$this->endWidget();
any help is much appreciated.
Thanks