php - How to force Zend_Navigation_Page_Mvc to generate an href -
i've come across strange issue zend_navigation_page_mvc . when try render anchor tag, url seems cached instance on page, therefore href incorrect. to create instance in action want return to: $request = $this->getrequest(); $back = new zend_navigation_page_mvc( array( 'module' => $request->getmodulename(), 'controller' => $request->getcontrollername(), 'action' => $request->getactionname(), 'params' => $params, // array of params pass 'label' => 'back listings', 'class' => 'back' ) ); i store in session , later retrieve provide back button. in action instance session , assign view. in view, render navigation using echo $this->navigation(new zend_navigation(array($this->back))); a var_dump of $this->back produces this: object(zend_navigation_page_mvc)[132] protected '_action'