/** * Reset object states * * @return void */ public function resetObjects() { $params = $this->request->getUserParams(); foreach (array_keys($params) as $key) { $this->request->setParam($key, null); } $this->response->clearBody(); $this->response->clearHeaders()->clearRawHeaders(); }
/** * Copies an exception found in the response of the initial request * into the responses of teh requests found in the requestStack. * * * @param Zend_Controller_Response_Abstract $response */ protected function _mergeInitException(Zend_Controller_Response_Abstract $response) { /** * @see Conjoon_Controller_DispatchHelper */ require_once 'Conjoon/Controller/DispatchHelper.php'; $result = Conjoon_Controller_DispatchHelper::mergeExceptions($response->getException()); $response->clearBody(); $response->setBody(Zend_Json::encode($result)); }