[eluser]La Loutre[/eluser]
Hi all,
I'm sorry to create a new thread on routing question, but I've been reading this forum for hours without finding a correct solution for my simple problem. Here it is : I'm in charge of a website which can start either with a page A (managed by Controller A) or a page B (manage by Controller... B), depending on the moment in the year.
I thought the best way is to keep a switch (A or B) in a database parameter table. But I don't know where to put the switch code :
- the route configuration file (default_controller) : I need something dynamic
- a hook : how do I chain to the good controller after it ?
- a base controller : I can't imagine a good way to chain controllers (and that's pretty normal in a MVC application)
- something else ?
Thank you !