编辑
现在有可能在symfony 2.2中这样做
现在有可能在symfony 2.2中这样做
PlatformFooBundle: resource: "@PlatformFooBundle/Resources/config/routing.PHP" domain: foo.testdomain.com PlatformBarBundle: resource: "@PlatformBarBundle/Resources/config/routing.PHP" domain: bar.testdomain.com PlatformBazBundle: resource: "@PlatformBazBundle/Resources/config/routing.PHP" domain: baz.testdomain.com
您也可以使用域中的参数
编辑过
在将此标记为重复之前,请继续阅读
http://www.craftitonline.com/2011/08/symfony2-locale-on-subdomains-not-on-the-url-path/
我读过这篇文章,但它并没有帮助我做我想做的事情.
我有3个不同的应用程序在相同的域名上运行,具有单独的子域名.目前,他们都在自己的symfony安装中运行,我想摆脱它.
foo.testdomain.com bar.testdomain.com baz.testdomain.com
每个都使用不同的捆绑
PlatformFooBundle PlatformBarBundle PlatformBazBundle
他们每个人都有自己的路线定义.
基本上,我想要的是这个
PlatformFooBundle: resource: "@PlatformFooBundle/Resources/config/routing.PHP" subdomain: www|devwww PlatformBarBundle: resource: "@PlatformBarBundle/Resources/config/routing.PHP" subdomain: bar|devbar PlatformBazBundle: resource: "@PlatformBazBundle/Resources/config/routing.PHP" subdomain: baz|devbaz
我该怎么做呢?
原文地址:https://www.jb51.cc/php/137005.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。