Here is the constructor invocation. There is nothing is passed or no function is called in constructor. why it is called?
class admin_login_model extends CI_Model {
function __construct() {
parent::__construct();
}
on controller
class admin_login extends CI_Controller {
function __construct() {
parent::__construct();
// if(!$this->session->userdata('validated')) redirect('admin/admin_login');
}
}