Welcome Guest, Not a member yet? Register   Sign In
MY_controller problem
#2

[eluser]Near[/eluser]
here is my_controller
Code:
class base_c extends ci_controller{
protected $is_login;
function __construct(){
parent::__construct();
$this->load->library('auth');
$this->is_login = (bool) $this->auth->is_login();
}
}

welcome controller

Code:
class welcome extends base_c{

function __contruct(){
parent::__construct();
var_dump($this->is_login);
}

}
class auth
Code:
function is_login(){
return true;
}


Messages In This Thread
MY_controller problem - by El Forum - 05-16-2012, 09:17 AM
MY_controller problem - by El Forum - 05-16-2012, 09:23 AM
MY_controller problem - by El Forum - 05-16-2012, 09:32 AM
MY_controller problem - by El Forum - 05-16-2012, 09:38 AM
MY_controller problem - by El Forum - 05-16-2012, 09:42 AM
MY_controller problem - by El Forum - 05-16-2012, 02:43 PM
MY_controller problem - by El Forum - 05-16-2012, 09:27 PM
MY_controller problem - by El Forum - 05-16-2012, 09:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB