This document is a start to get a new navigation component of the ground. The current Zend\Navigation
has shown to be a powerful component for navigation purposes. On the other hand, the code is since it's introduction in Zend Framework 1.8 not really updated. The complexity is for some features very difficult to comprehend. In ZF2, the overhaul of the view helpers made it even more difficult to customize the behaviour of Zend\Navigation
.
The good parts:
- A structure of containers and pages to create hierarchal trees
- A set of domain layer-like objects (containers and pages) and view helpers to render them into html
- The option to mark pages as "active"
- The option to tune visibility of pages
- The option to attach an ACL object to the navigation list to show or hide parts based on access permission