简体   繁体   中英

Yii CMenu Item doesnt get class active

Format looks like:

array(
   array('label'=>'Home', 'url'=>array('site/index')),
   array('label'=>'About', 'url'=>array('/site/page')),
   array('label'=>'Contact', 'url'=>array('/site/contact')),

)

But if I am clicking on an item, it doesnt get the class active.
I am using the urlmanager and url paths.
I still dont know whats going wrong.

You can see answers from this thread - CMenu - active class not rendering . They explain how to use active param for menu items.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM