Exemplo n.º 1
0
 public function postDispatch()
 {
     parent::postDispatch();
     if ($this->isStateChanged() && $this->session->current !== null) {
         $url = $this->session->current->getUrl();
         foreach ($this->_preRedirect as $cb) {
             if ($cb === 1) {
                 $plugin = Zend_Controller_Front::getInstance()->getPlugin('Logger_AppLoggerPlugin');
                 $plugin->dispatchLoopShutdown();
             } else {
                 call_user_func($cb);
             }
         }
         if ($this->redirectAfterStateChange) {
             $this->getActionController()->getHelper('redirector')->gotoUrlAndExit($url);
         }
     }
 }