load->helper('url'); $this->load->database(); $this->load->library('redirect_custom_service'); $this->load->model('url_redirect_model'); $this->redirect_custom_service->set_url_redirect_model( $this->url_redirect_model ); if($this->redirect_custom_service->set_url_redirect_model($this->url_redirect_model)) { $this->redirect_custom_service->check_redirect(); } } public function index() { $this->output->set_status_header('404'); $data["heading"] = "404 Page Not Found"; $data["message"] = "The page you requested was not found "; $this->load->view('errors/html/error_404',$data); } } ?>