How do I keep a single menu item highlighted when using 2 different Controller? I have made new links in the standard Yii generated code, but now the menu item is not highlighted when clicking on them.
When any of the /product/admin is clicked the menu is Highlighted, but none of the other highlight the menu. How can I specify in the URL’s above to highlight the specific menu item?
You have forced set ‘active’=>true for the first menu item - so it will always display that line item as active, unless you regenerate the menu again for each call.
If menu is not getting auto-activated based on your detected url … you may pass the active states yourself for each controller action. Something like this.