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

[eluser]vishok[/eluser]
Is possibile changing default_controller getting it froma database?
#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.




Theme © iAndrew 2016 - Forum software by © MyBB