mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-27 02:12:54 +03:00
29 lines
942 B
Text
29 lines
942 B
Text
|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||
|
|
||
|
class Errors extends CI_Controller {
|
||
|
public function __construct() {
|
||
|
parent::__construct();
|
||
|
$this->load->library('session');
|
||
|
// Set user's selected language.
|
||
|
if ($this->session->userdata('language')) {
|
||
|
$this->config->set_item('language', $this->session->userdata('language'));
|
||
|
$this->lang->load('translations', $this->session->userdata('language'));
|
||
|
} else {
|
||
|
$this->lang->load('translations', $this->config->item('language')); // default
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public function index() {
|
||
|
$this->e404();
|
||
|
}
|
||
|
|
||
|
public function error404() {
|
||
|
$this->load->model('settings_model');
|
||
|
$view['company_name'] = $this->settings_model->get_setting('company_name');
|
||
|
$this->load->view('general/error404', $view);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* End of file errors.php */
|
||
|
/* Location: ./application/controllers/errors.php */
|