Hello everyone,
I’ve implemented a CMenu widget as follows:-
<?php
$this->widget('zii.widgets.CMenu',array(
'items'=>array(
array('label'=>'Home', 'url'=>array('/site/index')),
array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
array('label'=>'Contact', 'url'=>array('/site/contact')),
array('label'=>'Login', 'url'=>array('/user/login')),
array('label'=>'Register', 'url'=>array('/user/registration')),
array('label'=>'Profile', 'url'=>array('/user/profile/')),
array('label'=>'Logout', 'url'=>array('/user/logout')),
),
));
?>
On pages where controller ID is Site the menu highlights current page correctly but when any of the ‘user’ pages are visited the current page is not highlighted. Please will you help me to correct this
Thanks
konapaz
(Konapaz)
November 2, 2012, 3:27pm
2
shingionline:
Hello everyone,
I’ve implemented a CMenu widget as follows:-
<?php
$this->widget('zii.widgets.CMenu',array(
'items'=>array(
array('label'=>'Home', 'url'=>array('/site/index')),
array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
array('label'=>'Contact', 'url'=>array('/site/contact')),
array('label'=>'Login', 'url'=>array('/user/login')),
array('label'=>'Register', 'url'=>array('/user/registration')),
array('label'=>'Profile', 'url'=>array('/user/profile/')),
array('label'=>'Logout', 'url'=>array('/user/logout')),
),
));
?>
On pages where controller ID is Site the menu highlights current page correctly but when any of the ‘user’ pages are visited the current page is not highlighted. Please will you help me to correct this
Thanks
When cou click on user pages link, the user page shows its content?
Yes when I click on the user pages the page content shows correctly i’m using the Yii user module