public function postDispatch() { if ($this->getRequest()->getActionName() != 'log-in' && $this->checkPanelPermission() && self::$postDispatchRunOnlyOnce) { #this will populate all zend_layout fragments we may need $this->render('top-menu', 'topMenu', true); self::$postDispatchRunOnlyOnce = false; } }
public function preDispatch() { #be sure to disrupt all actions if (parent::preDispatch() === false || $this->checkPanelPermission(Reactor_Acl::ACCESS_ADMIN_USERS_PANEL, true) === false) { $this->_forward('index', 'index', 'admin'); return false; } }
public function postDispatch() { parent::postDispatch(); }