コード例 #1
0
ファイル: App.php プロジェクト: alexanderTsig/arabic
 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();
 }
コード例 #2
0
ファイル: App.php プロジェクト: subashemphasize/test_site
 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();
 }