Harro Verton wrote on Friday 28th of October 2011:In general it's pointless having one in every class. 404's are triggered in FuelPHP by throwing a HttpNotFoundException, which is caught in your applications index.php, which then either loads your custom 404 controller, or shows the default not found message. There are situations where you would want something special in your controller, for example if the URI contains search arguments. You can then define routes for URI segments that meet the required criteria, and finish with a catch-all route for that controller that shows some error message and for example instructions on how to use that particular function. But I think its better to extend the HttpNotFoundException, and use a custom handle() method to deal with the exception.
It looks like you're new here. If you want to get involved, click one of these buttons!