I have error produced by application/views/errors/html/error_general.php
An Error Was Encountered
Unable to load the requested file: filename.php
But I want to redirect the error to my controller instead like in my error_general.php
. Can I do something like?
if(substr($message,0,36) == "Unable to load the requested file")
{
// redirect to my controller
// $this->My_controller->my_method(); -i don't know what i'm doing here, lol
}
Or is there any way to do this?