If the following code returns a fatal error, I get a message on the page I don't want users to see. I want to hide the fatal error message and redirect the user to another page:
$jinput = JFactory::getApplication()->input;
To hide the error message, I just added:
error_reporting(E_NONE);
But how do I catch and redirect a fatal error like this?