Exemplo n.º 1
0
 /**
  * Validate response body
  *
  * @return null
  */
 public function postDispatch()
 {
     parent::postDispatch();
     $body = $this->getResponse()->getBody();
     if (empty($body)) {
         $this->_message(Mage::helper('xmlconnect')->__('An error occurred while processing your request.'), self::MESSAGE_STATUS_ERROR);
     }
 }
Exemplo n.º 2
0
 /**
  * Need to disable this flag to prevent setting the last URL but we
  * don't want to completely break sessions.
  *
  * see Mage_Core_Controller_Front_Action::postDispatch
  *
  * @return null
  */
 public function postDispatch()
 {
     $flag = $this->getFlag('', self::FLAG_NO_START_SESSION);
     $this->setFlag('', self::FLAG_NO_START_SESSION, true);
     parent::postDispatch();
     $this->setFlag('', self::FLAG_NO_START_SESSION, $flag);
 }
 public function postDispatch()
 {
     parent::postDispatch();
     Mage::app()->getCookie()->delete('fb-referer');
     return $this;
 }
Exemplo n.º 4
0
 /**
  * Action postdispatch
  *
  * Remove No-referer flag from customer session after each action
  */
 public function postDispatch()
 {
     parent::postDispatch();
     $this->_getSession()->unsNoReferer(false);
 }
Exemplo n.º 5
0
 public function postDispatch()
 {
     parent::postDispatch();
 }