Source for file ErrorController.php
Documentation is available at ErrorController.php
* "THE BEER-WARE LICENSE" (Revision 42):
* "Sven Strittmatter" <ausserirdisch@sven-space.de> wrote this file.
* As long as you retain this notice you can do whatever you want with
* this stuff. If we meet some day, and you think this stuff is worth it,
* you can buy me a beer in return.
* @package Zend_Controller
* @copyright Copyright (c) 2009 Sven Strittmatter
* Default error controller.
* @see Zend_Controller_Action
* @package Zend_Controller
* @copyright Copyright (c) 2009 Sven Strittmatter
$errors = $this->_getParam('error_handler');
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
// 404 error -- controller or action not found
$this->getResponse()->setHttpResponseCode(404);
$this->view->message = 'Page not found';
$this->getResponse()->setHttpResponseCode(500);
$this->view->message = 'Application error';
$this->view->exception = $errors->exception;
$this->view->request = $errors->request;
$this->view->env = APPLICATION_ENV;
|