Welcome Guest, Not a member yet? Register   Sign In
Dynamic Routes
#6

[eluser]narkaT[/eluser]
[quote author="Colin Williams" date="1222317389"]I would have a controller that handles unresolved requests, and overload the method of the router class that would typically show_404(), but instead have it go to the controller you set.[/quote]
that's what I'm actually doing there Wink

[quote author="Colin Williams" date="1222317389"](probably best to use something defined in routes.php and not hardcode it right there in MY_Router.php)[/quote]

yes, but it's not possible to create a route, that only matches non-existing controllers.
so extending the router class is the only alternative (as far as I know).

Greetings
Jan


Messages In This Thread
Dynamic Routes - by El Forum - 09-24-2008, 03:34 PM
Dynamic Routes - by El Forum - 09-24-2008, 04:04 PM
Dynamic Routes - by El Forum - 09-24-2008, 04:17 PM
Dynamic Routes - by El Forum - 09-24-2008, 04:34 PM
Dynamic Routes - by El Forum - 09-24-2008, 05:36 PM
Dynamic Routes - by El Forum - 09-25-2008, 03:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB