Welcome Guest, Not a member yet? Register   Sign In
How do I handle invalid controllers
#2

[eluser]Dam1an[/eluser]
There are 2 possible ways to di this that come to mind
1. Extending the Exception class, and instead of displaying the 404 page, redirect to your controller
2. Add a catch all route at the end whih points to your controller (You would need to define all your valid controllers before it though, so this can get a bit messy)


Messages In This Thread
How do I handle invalid controllers - by El Forum - 05-10-2009, 04:19 AM
How do I handle invalid controllers - by El Forum - 05-10-2009, 04:27 AM
How do I handle invalid controllers - by El Forum - 05-10-2009, 04:49 AM
How do I handle invalid controllers - by El Forum - 05-10-2009, 04:56 AM
How do I handle invalid controllers - by El Forum - 05-11-2009, 06:12 AM
How do I handle invalid controllers - by El Forum - 05-11-2009, 07:54 AM
How do I handle invalid controllers - by El Forum - 05-11-2009, 08:05 AM
How do I handle invalid controllers - by El Forum - 05-11-2009, 08:33 AM
How do I handle invalid controllers - by El Forum - 05-11-2009, 10:05 AM
How do I handle invalid controllers - by El Forum - 05-11-2009, 12:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB