class MY_Output extends CI_Output { function set_status_header($code = 200, $text = '') { set_status_header($code, $text); $this->last_set_status_code = $code; return $this; } function get_status_header() { return $this->last_set_status_code; } }
At folder controllers i created new controller Error.php: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Error extends MY_Output { public function __construct() { parent::__construct(); } function error_404() { $this->load->view('404'); } } ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)