'items'=>array(
array(
'label'=>'About',
'url'=>array('about/index')
),
about/index – we get the class on the menu – active.
about/graphic – we don’t get the class on the menu active.
about/print – we don’t get the class on the menu active.
Please note that the menu has NO subitems.
Only About.
No mater if the user is on graphic, print or whatever, we wish to have the About highlighted.
How can we accomplish this ?
I’ve tried to edit that ‘url’ param a lot. No luck.
Added the
activeparam. This worked.I’ve set that property. Otherwise it wouldn’t work.
However, as you can see on the bold line, they say this should be automatically triggered. It wasn’t on this case.
I suppose this was the case due to the fact that Yii is expecting a child element of About in order to apply that class, since there’s any, we have to force it, to get the parent instead.
Not sure however.