Have question about the menu widget from Yii2. I have a menu generated with this widget. Menu items are generated and I see a nice menu. I have friendly urls enabled in the config and I hide the script name.
When i add a url to the nav link for instance /news/index and I select that menu item, I see that the nav sets the class I have set with the activeCssClass property. However, when I edit an item and I go to the url /news/update/3 the menu item is no longer selected. Even with "activateItems" and "activateParents" both set to true. Also, when I go to /news the menu item is not selected.
Can someone tell me, how I can set a menu item always active based on my controller name? I want the menu item news active as long as I am in /news/index or /news/update/1 or /news/new, etc. etc.