UPDATE: I see this was a bug opened in ZF against 1.8.2 (
zendframework.com/issues/browse/ZF-6865?...anels%3Aall-tabpanel) and was closed with WONT FIX. Guess I'll have to hack my way around it with a plugin or extended class. Thanks.
Hello. I'm still going through your tutorials which are very good.
I have a question regarding using Zend_Navigation for two menus using your code from tutorial 19. I use a navigation.xml file with a nav and nav2 sections, each with their on links. I create two containers using the named sections and it appears that the objects contain the correct pages. It looks something like this:
| Code: |
$navContainerConfig = new Zend_Config_Xml(APPLICATION_PATH . '/configs/navigation.xml', 'nav');
$navContainer = new Zend_Navigation($navContainerConfig);
$navContainer2Config = new Zend_Config_Xml(APPLICATION_PATH . '/configs/navigation.xml', 'nav2');
$navContainer2 = new Zend_Navigation($navContainer2Config);
$view->navigation($navContainer)->setAcl($this->_acl)->setRole(Zend_Registry::get('role'));
|
The question I have is how I handle passing the $navContainer2 object to my layout?
I tried adding a new $view->navigation($navContainer2)... but that overwrites the first container.
Thank you for any tips.