ZF-10048: Fatal error: Call to a member function getParams() on a non-object in Zend/Navigation/Page/Mvc.php on line 133
Description
Zend Navigation should detect wether the page is from type mvc or uri.
You need the following configuration to reproduce this error:
<?xml version="1.0" encoding="UTF-8"?>
Dashboard
/admin/index/indexdefault
$navConfig = new Zend_Config_Xml(APPLICATION_PATH . '/path/to/navigation.xml', 'nav');
$this->_navigation = new Zend_Navigation($navConfig);
var_dump($this->_navigation->toArray());
If you remove the comments from the type of page, the error get wings and will fly away. :) In my opinion Zend_Navigation should detect the page type automatically. Either is set then the typ is uri else it is mvc.
regards René
Comments
Posted by Kai Uwe (kaiuwe) on 2011-02-11T04:38:14.000+0000
{quote} In my opinion Zend_Navigation should detect the page type automatically. Either is set then the typ is uri else it is mvc. {quote} It does! But what do you want? In your configuration stands uri and route? Do want an Uri-Page or a MVC-Page?
Posted by Kai Uwe (kaiuwe) on 2011-04-06T15:33:05.000+0000
Extend the abstract page class and check:
Posted by Frank Brückner (frosch) on 2012-03-21T20:51:58.000+0000
Fix is included in ZF-11372