Welcome Guest, Not a member yet? Register   Sign In
Use __remap to Show 404 Page
#3

[eluser]Aken[/eluser]
Your _remap() method is basically emulating the exact method that CI itself uses to either call a valid controller method, or show a 404 page. I think you'd be better served by using routes rather than _remap().

The problem is that the method is found, and then all the remaining URI segments are passed as parameters to the method. You'd need to validate those parameters to establish whether or not they are valid, and then throw a 404 error if appropriate.


Messages In This Thread
Use __remap to Show 404 Page - by El Forum - 07-31-2012, 04:59 PM
Use __remap to Show 404 Page - by El Forum - 07-31-2012, 06:35 PM
Use __remap to Show 404 Page - by El Forum - 07-31-2012, 06:36 PM
Use __remap to Show 404 Page - by El Forum - 08-01-2012, 03:33 PM
Use __remap to Show 404 Page - by El Forum - 08-01-2012, 03:49 PM
Use __remap to Show 404 Page - by El Forum - 08-01-2012, 04:07 PM
Use __remap to Show 404 Page - by El Forum - 08-01-2012, 04:50 PM
Use __remap to Show 404 Page - by El Forum - 08-01-2012, 04:55 PM
Use __remap to Show 404 Page - by El Forum - 08-01-2012, 05:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB