Cmenu Not Assigning Activeclass


    


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

  'activeCssClass'=>'act',

  'activateParents'=>true,

  'encodeLabel'=>false,

  'items'=>array(

...........

............

array(

      'label'=>'<span>About Us</span>',

      'url'=>array('about/page/companyprofile'),

      'linkOptions'=>array('class'=>'menulink', 'title'=>'About Us'),

      'items'=>array(

        array('label'=>'Company Profile', 'url'=>array('about/page/companyprofile')),

        array('label'=>'Meet The Management', 'url'=>array('about/page/meetthemanagement')),

        array('label'=>'Meet The Team', 'url'=>array('about/page/meettheteam')),

	array('label'=>'Meet The Consultants', 'url'=>array('about/page/meettheconsultants')),

	array('label'=>'Careers', 'url'=>array('careers/index')),

	array('label'=>'Awards', 'url'=>array('about/page/awards')),		

      ),

    ),

..........

...........

If I open the About Us parent list item or any child items which are static pages of about controller’s page action the parent list item About Us doesn’t get the active css class ‘act’. But if I open the child list item career then the About Us li gets the active class. Why is it not getting the active class on opening other child list items ?

Do you have any URL rules which change the display of the static page URL’s?

I do have but not for the about pages. This is what I have in url rules array


'rules'=>array(

				'<controller:\w+>/<id:\d+>'=>'<controller>/view',

				'<controller:\w+>/<action:\w+>/<view:\w+>'=>'<controller>/<action>',

				'uae/dubai-accommodation' => 'uae/dubaiaccommodation',

				'uae/downtown-dubai' => 'uae/downtowndubai',

				'uae/victory-heights' => 'uae/victoryheights',

				'uae/uae-property' => 'uae/uaeproperty',

                                .................................

                                ................................

                                ...............................

                                'careers/job-detail' => 'careers/jobDetail',

				'careers/apply-now' => 'careers/applyNow',

				'<controller:\w+>/<id:\d+>'=>'<controller>/view',

				'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',

				'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',

),