function __construct() { parent::__construct(); //define controller dir as the class name define("DIR", strtolower(__CLASS__) . '/'); //define the class name as a string define("_CLASS", strtolower(__CLASS__)); //Load all models $this->load->model('classrooms_model', 'classrooms'); }
function __construct() { parent::__construct(); //define controller dir as the class name define("DIR", strtolower(__CLASS__) . '/'); //define the class name as a string define("_CLASS", strtolower(__CLASS__)); //Load regions model $this->load->model('subjects_model', 'subjects'); }
function __construct() { parent::__construct(); //Define controller dir as the class name define('DIR', strtolower(__CLASS__) . '/'); //Define the class name as a string define('_CLASS', strtolower(__CLASS__)); //Load all models $this->load->model('students_model', 'students'); $this->load->model('schools_model', 'schools'); $this->load->model('classrooms_model', 'classrooms'); $this->load->model('classrooms_subjects_model', 'classrooms_subjects'); $this->load->model('subjects_model', 'subjects'); }