When I use the CMenu widget, there should by a class added to the list item when it is active (the property $activeCssClass is ‘active’ by default). This works fine, until I use URL rules to make the links SEO friendly.
The reported problem is occure when we use module and use url.
suppose i have module user and i had login action in login controller, so i can do below thing form menu as how menu item gets active defined below.
In both cases it will redirect to login page in user module…
array('label'=>Yii::t('frontend','Login'), 'url'=>array('/user/login/login'), 'visible'=>Yii::app()->user->isGuest), // Working, Login tag activated on login page
array('label'=>Yii::t('frontend','Login'), 'url'=>array('/user/login'), 'visible'=>Yii::app()->user->isGuest), // Not working, Login tag not activated on login page