You can go see my small tutorial on language routing.
M4d3L-Network Blog Add language route to your Zend Framework project.
Then change the chain route to be apply to hostname else to the Request URI.
Hello,
I've got two questions about how to use Zend_Controller_Router_Route_Hostname:
1) How do I make sure that all the requests with a subdomain, are using a predefined module? For example mysite.com should use the default module while a.mysite.com should use the "a" module.
I want do display any page within this subdomain (e.g. a.mysite.com/controller/action). Any example using a INI configuration file would be greatly appreciated!
2) subdomain can point to pages in multiple languages, for example: a.mysite.com is a subdomain in french while b.mysite.com is in spanish. So my question is: What's the best way to detect the language according to the word (a, b, ...) and change the locale so that the page displays in the correct language? A plugin?
Thanks!
Mike
You can go see my small tutorial on language routing.
M4d3L-Network Blog Add language route to your Zend Framework project.
Then change the chain route to be apply to hostname else to the Request URI.