Having spent a few hours attempting to work out why Zend_Navigation was refusing to place the built-in “active” css class onto my navigation elements while being in the correct module/controller/action I finally resolved the issue:
It came down the custom routes!
If you have custom routes and you find your navigation is not correctly highlighting it’s probably because you haven’t tied in your route to your navigation elements.
It requires very explicit setting to work.
Below is an example of how it should be structured:
(more...)