Exemplo n.º 1
0
 function __exception404(Zend_Controller_Response_Abstract $response)
 {
     try {
         $p = $this->di->pageTable->load($this->di->config->get('404_page'));
         $body = $p->render($this->di->view, $this->di->auth->getUserId() ? $this->di->auth->getUser() : null);
     } catch (Exception $e) {
         $body = 'HTTP/1.1 404 Not Found';
     }
     $response->setHttpResponseCode(404)->setBody($body)->setRawHeader('HTTP/1.1 404 Not Found')->sendResponse();
 }
Exemplo n.º 2
0
 function __exception404(Zend_Controller_Response_Abstract $response)
 {
     $response->setHttpResponseCode(404)->setBody('HTTP/1.1 404 Not Found')->setRawHeader('HTTP/1.1 404 Not Found')->sendResponse();
 }