Welcome Guest, Not a member yet? Register   Sign In
Internationalization and Routing: adding the language code (en,de,fr) inside URLs
#6

[eluser]easymind[/eluser]
Hmmmm....

To make the language code mandatory keeps you in control of the routing. But as far as I know the routing routine will follow all routing options, even if it finds more that fit. So after the first routing did or did not work (because language code was included or not) it will then take the newly formed url and continue to match the rest of the routing rules.

So I think I would keep the non mandatory language code as a first routing rule and then make other routing rules to handle the redirects to registration forms and so on....

But also I like the controller->function urls. Maybe not when using the index function to pass variables to, but I just don't do that. So I try to make as little routing as possible.


Hmm, it seems not to work as I just said. The routing rules are not compared with the 'newly formed' url. I think that is what you mean....
So all routing should have a non-mandatory language part....


Messages In This Thread
Internationalization and Routing: adding the language code (en,de,fr) inside URLs - by El Forum - 11-02-2007, 12:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB