27 lines
630 B
PHP
27 lines
630 B
PHP
<?php defined('SYSPATH') or die('No direct access allowed.');
|
|
|
|
/**
|
|
* This class overrides Kohana's 404 Exception
|
|
*
|
|
* @package lnApp/Modifications
|
|
* @category Classes
|
|
* @category Helpers
|
|
* @author Deon George
|
|
* @copyright (c) 2010 Deon George
|
|
* @license http://dev.leenooks.net/license.html
|
|
*/
|
|
class HTTP_Exception_404 extends Kohana_HTTP_Exception_404 {
|
|
public function get_response() {
|
|
$response = Response::factory();
|
|
$response->status($this->_code);
|
|
|
|
$view = View::factory('errors/404');
|
|
$view->message = $this->getMessage();
|
|
|
|
$response->body($view->render());
|
|
|
|
return $response;
|
|
}
|
|
}
|
|
?>
|