Reputation: 9267
I want to make a multilanguage site in cakephp, it is written cake's webiste the way of url structure can be like using specific subdomains like en.example.com, fra.example.com
or using a prefix to the url, as it is on the official page on the above link. I do not prefer using subdomains, and so I need to do this
http://example.com/en/posts/view
http://example.com/fr/posts/view
But how should I configure the routes to accomplish this. I want for them to be as on the official website, the language param between the controller and the domain name.
Thanks
Upvotes: 0
Views: 1114
Reputation: 25698
Just follow the instructions of this plugin https://github.com/cakedc/i18n to set this up.
Upvotes: 1