Move Error functions to a Controller |
[eluser]Pascal Kriete[/eluser]
No, there is no definitive solution. This is just something I thought of a long time ago. Lately I've been using routes to do this. Meaning I route all controllers, and at the end I add a catch-all route to a 404 controller: Code: $route['.*'] = 'error/not_found'; There are a few other solutions by overriding the router, or modifying codeigniter.php. In most applications 404 pages shouldn't be all too complex anyways [Yahoo Performance Rules]. |
Messages In This Thread |
Move Error functions to a Controller - by El Forum - 04-09-2008, 10:22 AM
Move Error functions to a Controller - by El Forum - 04-09-2008, 11:37 AM
Move Error functions to a Controller - by El Forum - 04-09-2008, 11:40 AM
Move Error functions to a Controller - by El Forum - 04-09-2008, 12:21 PM
Move Error functions to a Controller - by El Forum - 04-09-2008, 05:51 PM
Move Error functions to a Controller - by El Forum - 04-10-2008, 02:32 AM
Move Error functions to a Controller - by El Forum - 04-10-2008, 06:15 AM
Move Error functions to a Controller - by El Forum - 04-10-2008, 08:21 AM
Move Error functions to a Controller - by El Forum - 04-10-2008, 09:07 AM
Move Error functions to a Controller - by El Forum - 11-14-2008, 05:21 PM
Move Error functions to a Controller - by El Forum - 11-14-2008, 05:34 PM
Move Error functions to a Controller - by El Forum - 11-14-2008, 05:54 PM
Move Error functions to a Controller - by El Forum - 11-14-2008, 05:57 PM
Move Error functions to a Controller - by El Forum - 11-15-2008, 05:09 AM
Move Error functions to a Controller - by El Forum - 11-15-2008, 11:12 AM
Move Error functions to a Controller - by El Forum - 11-15-2008, 11:30 AM
Move Error functions to a Controller - by El Forum - 12-28-2008, 09:41 PM
Move Error functions to a Controller - by El Forum - 12-29-2008, 04:45 AM
Move Error functions to a Controller - by El Forum - 07-17-2011, 04:28 PM
|