Trying to extend codeigniters CI_Exceptions class so i can override the show_404 method but I just get fatal with the following message:
” Fatal error: Class ‘CI_Exceptions’ not found “
The contents of MY_Exceptions is as follows:
class MY_Exceptions extends CI_Exceptions {
function MY_Exceptions()
{
die("reached MY_Exceptions!!");
//parent::CI_Exceptions();
}
}
The file is located in app/libraries.
I am using codeigniter version 2.0.2
I am using the exact same method to override the core Controller which is working perfectly.
Exceptionsclass has been moved to core classes. If you want to modify it you need to put it inapplication/core/. Please check here for more details.