Exemple #1
0
 public function preDispatch(\Zend_Controller_Request_Abstract $request)
 {
     $controllerName = $request->getControllerName();
     $relatedLinksConfig = new \Zend_Config_Xml(APPLICATION_PATH . "/configs/related_links.xml", "links");
     $navigation = new \Zend_Navigation($relatedLinksConfig);
     $links = $navigation->findAllByController($controllerName);
     if (count($links) > 0) {
         $view = \Zend_Layout::getMvcInstance()->getView();
         $view->related_links = $links;
     }
 }