Detect language and redirect to subdomain on Symfony

纵然是瞬间 提交于 2019-12-04 08:41:47

Using Symfony's routing system is the proper solution for these kind of issues.

Take a look at http://www.symfony-project.org/jobeet/1_2/Doctrine/en/05 for general routing info and at http://www.symfony-project.org/blog/2009/03/02/call-the-expert-adding-subdomain-requirements-to-routing-yml for advanced routing issues.

Note: I strongly suggest updating to sf 1.4 because 1.2 isn't maintained anymore. (http://www.symfony-project.org/tutorial/1_4/en/upgrade)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!