Codeigniter extending controller, controller not found
问题 In Codeigniter 2.1.2 I want to create base controller and then extends from this controller. It does not work and I have no idea why and I'm pretty desperate now. In \application\core\MY_Base_Controller.php I have this: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class MY_Base_Controller extends CI_Controller { function __construct() { parent::__construct(); ... In \application\controllers\Home.php I have this: <?php if ( ! defined('BASEPATH')) exit('No direct