ZF-10048: Fatal error: Call to a member function getParams() on a non-object in Zend/Navigation/Page/Mvc.php on line 133
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.