Help with CMenu items

Hey, guys!

I’ve just started playing with Yii a few days ago. I have a little problem with CMenu.

Suppose I have a CMenu with two items. First item goes to page View1.php and the second one goes to View2.php. But in View2.php, there is a link to View3.php. What I’d like to do is keep the second CMenu item active in View3.php. Also I don’t want use any kind of submenu.

How can I do that?

Thanks in advance!

How about you set the active option of the second item. Something like:


'active'=>$this->getRoute()=='content/category/index'?true:false

And include all wanted routes.

Thanks, it works!