ZF2-477: Multiplie navigation don't work
Description
When in layout we add several navigation rendering get fatal error:
echo $this->navigation('navigation');
$helper = $this->navigation()->findHelper('menu');
$helper->setContainer('secondnavigation'); // <- Fatal error: Call to a member function get() on a non-object in /usr/share/zf2/library/Zend/View/Helper/Navigation/AbstractHelper.php on line 222
echo $this->navigation('secondnavigation'); // <- render old 'navigation'.
for testing enough one navigation as this line also do error:
$helper->setContainer('navigation');
Comments
Posted by Ralph Schindler (ralph) on 2012-10-08T20:14:56.000+0000
This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf2/issues/2531