Can't load my custom library as an extension of CI_Controller in CodeIgniter 3.0
I am trying to load my custom library as an extension of CI_Controller in CodeIgniter 3.0, but it does not seem to work. This is my source code. Library class MY_Login extends CI_Controller { function __construct() { parent::__construct(); // call with constructor. $this->isLogin(); } function isLogin() { // source code } } Controller class Dashboard extends CI_Controller { protected $CI; public function __construct() { parent::__construct(); $this->load->library("MY_Login"); $this->CI =& get_instance(); } }
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.