In my web app I'm extending the Codeigniter core using applicaiton/core/MY_controller as below:
class MY_Controller extends CI_Controller {
function __construct(){
parent::__construct();
}
}
And in my controller I have:
class Dashboard extends MY_Controller {
public function __construct(){
parent::__construct();
// Your own constructor code
}
public function index(){
}
}
This work perfectly on my localhost, however on my production server it returns a 500 error with an error message of "PHP Fatal error: Class 'MY_Controller' not found...".
PHP version on localhost is 5.4.10 and on production is 5.4.15.
I'm using the latest version of Codeigniter.
Thanks in advance!
.htaccessin your production server. - som