function __construct() { parent::__construct(); $this->db_prefix = DB_PREFIX . $this->session->userdata('client_id'); $this->load->model('academic'); $this->load->model('admission'); }
function __construct() { parent::__construct(); $this->load->model('admin_model'); if ($this->session->userdata('usertype') != 'sys_admin') { //this is not the site owner, clear session variables and take him to the login page //$this->session->sess_destroy(); redirect('login', 'refresh'); } }
public function __construct() { parent::__construct(); $this->load->model('pincode_model'); $this->load->model('profile_model'); $this->load->model('batch_model'); $this->load->model('resource_model'); $this->load->model('user_model'); $this->load->model('report_model'); $this->load->model('payment_model'); }
public function __construct() { parent::__construct(); $this->db_prefix = DB_PREFIX . $this->session->userdata('client_id'); }
function __construct() { parent::__construct(); $this->load->library('session'); }