I Want A New Context In The Url Depending Of The Language


I have for example a controller name CustomerController and and action call createAction, when I type this url

http://www.midomain.com/customer/create is executed the create action. Until here everything normal, but I want that when the user change the language for example to Spanish, when the application redirects to /customer/create the url will be "cliente/crear" (that it is same in Spanish), but the action that I want to execute is create and the controller customer.

There is a way to do something like that in Yii.

Thank in advance !

I guess yes but you need to work on htaccess rewrite .

Check Google results :

Google Results