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

[eluser]LuckyFella73[/eluser]
First of all thank you for contributing all this!

I implemented this into a test environment and now want to use this method
in a "real" project.

What I still don't understand is how to handle the uri segments. Lets say
I have a class "form" a method "update" and a third uri segment containing
the id of the db row to update. For the standard language there would be
2 possible urls to access my controller:

Code:
www.domain.com/form/update/id
// or for example
www.domain.com/en/form/update/id
In one case the id is found in uri segment 3 in the other it's 4. Do I have to place
multiple if statements in my controller to handle that problem or is there something
I just didn't understand?


Messages In This Thread
Internationalization and Routing: adding the language code (en,de,fr) inside URLs - by El Forum - 02-13-2009, 05:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB