Welcome Guest, Not a member yet? Register   Sign In
How to bypass first segment in routing?
#2

[eluser]mddd[/eluser]
The problem is not in the language but in the fact that for some controllers you want to keep all the segments and for others you want to reroute to the index method.

A simple solution would be to keep the route just as it is, and use the _remap method in all controllers that use the index method (even when arguments are present).
The route takes care of stripping off the language. The _remap method does the rest.


Messages In This Thread
How to bypass first segment in routing? - by El Forum - 08-05-2010, 04:17 AM
How to bypass first segment in routing? - by El Forum - 08-05-2010, 04:41 AM
How to bypass first segment in routing? - by El Forum - 08-15-2010, 04:28 AM
How to bypass first segment in routing? - by El Forum - 08-15-2010, 07:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB