Esempio n. 1
0
 public function cliAction()
 {
     $this->view->setTemplate();
     $response = new Enlight_Controller_Response_ResponseCli();
     $response->appendBody(strip_tags($this->View()->exception) . "\n");
     $this->front->setResponse($response);
 }
Esempio n. 2
0
 public function errorAction()
 {
     $error = $this->Request()->getParam('error_handler');
     $response = new Enlight_Controller_Response_ResponseCli();
     $response->appendBody(strip_tags($error->exception) . "\n");
     $this->front->setResponse($response);
 }