Today, has been a very productive day for me. Part of it was spent on picking up Zend_Navigation which, thanks to Jon Lebensold’s Zend Cast on the subject of using Zend_Navigation to create menus, sitemaps and breadcrumbs, was easier than I had expected.
Zend_Navigation makes the management of a web site’s navigation very easy as it allows you to programmatically create the navigation bar by specifying either the URI or Controller, Action and Module properties of a Zend Navigation Page.
To use Zend Navigation, all I had to do was the following:
- Add configuration entries for navigation in the application.ini file.
- Initialise and attach an instance of the Zend_Navigation container class to the navigation helper via the view in the bootstrap.
- Display the navigation bar with Zend_View_Helper_Navigation::menu() or the BreadCrumbs with Zend_View_Helper_Navigation::breadcrumbs() in your layout.phtml file.
» Read more: Zend_Navigation makes writing Navigation for ZF Sites Very Easy

