domain.com/fr/admin/users
=
Config.language => fr
prefix => admin
controller => users
action => index
On Monday, October 22, 2012 8:17:04 AM UTC+2, Vanja Dizdarević wrote:
-- controller => users
action => index
On Monday, October 22, 2012 8:17:04 AM UTC+2, Vanja Dizdarević wrote:
I am making my site multilingual, with English being the default language.I wish to have domain.com/ display English, domain.com/{language_code (fr|de|sp)} display the complete app, with all its prefix routing in the selected language. So domain.com/fr/admin would translate to Config.language being fr and controller => admin, action=> index..
How do I achieve this?I have some ugly hacks in mind, but I would like to know if there is a more "conventional" way of doing this. How is this routing done on book.cakephp.org?
Cheers!
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
No comments:
Post a Comment