This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/application/classes/HTTP/Exception/404.php

26 lines
605 B
PHP
Raw Normal View History

2011-05-14 07:35:33 +00:00
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class overrides Kohana's 404 Exception
*
2013-03-19 22:35:19 +00:00
* @package OSB
2013-04-18 08:17:33 +00:00
* @category Exceptions
2011-05-14 07:35:33 +00:00
* @author Deon George
2013-03-19 22:35:19 +00:00
* @copyright (c) 2009-2013 Open Source Billing
* @license http://dev.osbill.net/license.html
2011-05-14 07:35:33 +00:00
*/
class HTTP_Exception_404 extends Kohana_HTTP_Exception_404 {
public function get_response() {
$response = Response::factory();
$response->status($this->_code);
2011-05-14 07:35:33 +00:00
$view = View::factory('errors/404');
$view->message = $this->getMessage();
$response->body($view->render());
return $response;
2011-05-14 07:35:33 +00:00
}
}
2011-08-16 02:27:19 +00:00
?>