public_nav_main
— Get the main navigation for the public site.
Summary
- public_nav_main()
Get the main navigation for the public site.
- Returns:
Zend_View_Helper_Navigation_Menu Can be echoed like a string or manipulated by the theme.
Usage
This function returns a Zend Framework view helper called
Zend_View_Helper_Navigation_Menu
. Simply echoing the result of the function
like a string will print out the navigation menu, but you can also call methods
on it to change the output. See
Zend Framework’s documentation
for details on what methods you can call on the menu helper.
Examples
Printing the normal nav menu with no changes:
echo public_nav_main();
Changing the class used for the topmost <ul>
for the nav menu:
echo public_nav_main()->setUlClass('custom-class');