CodeIgniter 2: How to extend CI_Controller multiple times?
I have successfully extended the CI_Controller class by creating a MY_Controller.php which I have placed in the application/core directory. core/My_Controller.php looks something like this: class MY_Controller extends CI_Controller { function __construct() { parent::__construct(); } } Then when I create normal controllers they look something like this: class Home extends MY_Controller { function __construct() { parent::__construct(); } function index() { $this->load->view('home'); } } I'm creating a admin back end and I want to have a different base class for controllers to extend instead of