コード例 #1
0
 public function init()
 {
     $this->_modelRoutes = Modules_Router_Model_Router::getInstance();
     $this->_currentSection = $this->_modelRoutes->current();
     $this->_helper->viewRenderer->setNoRender();
     $this->view->current_route = $this->_currentSection;
     if ($this->_currentSection) {
         Zend_Registry::set('current_route', (object) $this->_currentSection);
     }
     $this->view->headTitle($this->_currentSection['name']);
     if (!$this->_currentSection || 1 == $this->_currentSection['disable'] || !Zetta_Acl::getInstance()->isAllowed('route_' . $this->_currentSection['route_id'], 'allow')) {
         return $this->_forwardTo404();
     }
     $this->_forwardToMVC();
 }