Exemple #1
0
 function __construct()
 {
     parent::__construct();
     $this->db_prefix = DB_PREFIX . $this->session->userdata('client_id');
     $this->load->model('academic');
     $this->load->model('admission');
 }
Exemple #2
0
 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');
     }
 }
Exemple #3
0
 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');
 }
Exemple #4
0
 public function __construct()
 {
     parent::__construct();
     $this->db_prefix = DB_PREFIX . $this->session->userdata('client_id');
 }
Exemple #5
0
 function __construct()
 {
     parent::__construct();
     $this->load->library('session');
 }