[eluser]Pachat[/eluser]
[quote author="Matthieu Fauveau" date="1217739582"]Sure I can hack CI Core but we should have a better method...[/quote]
In order to take hand on the CI Exceptions system, you may override the CI_Exceptions class :
create the file application/librairies/MY_Exceptions.php with
Code:
class MY_Exceptions extends CI_Exceptions {
function MY_Exceptions()
{
parent::CI_Exceptions();
}
function show_404($page = '')
{
parent::show_404($page);
}
function show_error($heading, $message, $template = 'error_general')
{
//Do whatever you want from $message analysis
//and | or
//return parent::show_error($heading, $message, $template);
}
}