1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2
3 class Errors extends CI_Controller {
4 public function __construct() {
5 parent::__construct();
6 $this->load->library('session');
7
8 if ($this->session->userdata('language')) {
9 $this->config->set_item('language', $this->session->userdata('language'));
10 $this->lang->load('translations', $this->session->userdata('language'));
11 } else {
12 $this->lang->load('translations', $this->config->item('language'));
13 }
14 }
15
16 public function index() {
17 $this->e404();
18 }
19
20 public function error404() {
21 $this->load->model('settings_model');
22 $view['company_name'] = $this->settings_model->get_setting('company_name');
23 $this->load->view('general/error404', $view);
24 }
25 }
26
27
28