Welcome Guest, Not a member yet? Register   Sign In
Dynamic changing of default_controller
#2

[eluser]WanWizard[/eluser]
Not without a lot of tricks, because the routing decision happens long before you have access to the database.

For my project I don't use routing at all, I have a fixed route to my 'bootstrap' controller, which does the dynamic routing based on database info.
Some others have an admin application to manage the dynamic paths, and generate a new config/routes.php when an update is made. This is probably an easier route.


Messages In This Thread
Dynamic changing of default_controller - by El Forum - 05-22-2010, 09:15 AM
Dynamic changing of default_controller - by El Forum - 05-22-2010, 09:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB