public function __construct() { parent::__construct(); $this->session->set_userdata('language', 'english'); $this->data['language'] = $this->data['language'] = 'en'; $this->load->helper('captcha'); $this->load->model('page_m'); $this->load->model('course_m'); $this->load->model('category_m'); // $this->load->model('user_m'); $total_url = $this->uri->uri_string(); $this->data['lang_url'] = $this->uri->segment(1); $this->data['total_url'] = str_replace("/", "--", $total_url); }
public function __construct() { parent::__construct(); $this->load->helper('captcha'); $this->data['language'] = $this->data['language'] = 'en'; $this->load->model('page_m'); $this->load->model('course_m'); $this->load->model('category_m'); $this->load->model('difficulty_m'); $this->load->model('lesson_m'); $this->load->model('block_m'); $total_url = $this->uri->uri_string(); $this->data['lang_url'] = $this->uri->segment(1); $this->data['total_url'] = str_replace("/", "--", $total_url); }