CMenu help

Hi All,

I have a CMenu widget set up in my layout like this…




<?php $this->widget('zii.widgets.CMenu', array(

				'items' => array(

					array('label' => 'Home', 'url' => '/'),

					array('label' => 'About', 'url' => array('/info/about')),

					array('label' => 'FAQ', 'url' => array('/info/faq')),

					array('label' => 'Records', 'url' => array('records/index'), 'visible' => !Yii::app()->user->isGuest),

					array('label' => 'Lists', 'url' => array('lists/index'), 'visible' => !Yii::app()->user->isGuest)

					),

				'id' => 'main-nav',

				'htmlOptions' => array('class' => 'nav'),

				'activeCssClass' => 'active'

				));

		?>



I have the ‘About’ and ‘FAQ’ page s set up as static pages within the site controller and have custom routes applied to them e.g. /site/page/view/about => /info/about.html.

When this renders and I navigate to the pages links, the active class doesn’t get applied but does when applied to the ones where they are linking to actual controller methods.

How do I get the active class appended to the static page links?

Take a look here http://www.yiiframework.com/forum/index.php?showtopic=7444 the problem is similar, look for the active property