46 parent::__construct($message);
56 if (isset($e->_view) && ($e->_view ==
'no_controller' || $e->_view ==
'no_action')) {
57 header(
'HTTP/1.1 404 Not Found');
59 header(
'HTTP/1.1 500 Internal Server Error');
67 include
APP_PATH .
'views/_shared/errors/404.phtml';
70 $Template =
'views/templates/exception.phtml';
71 if (isset($e->_view)) {
72 include
CORE_PATH .
"views/errors/{$e->_view}.phtml";
74 include
CORE_PATH .
"views/errors/exception.phtml";
77 $content = ob_get_clean();
80 while (ob_get_level ()) {
85 if (class_exists(
'View')) {