大佬教程收集整理的这篇文章主要介绍了php – Symfony2子域路由 – 不同的捆绑包,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
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
我该怎么做呢?
以上是大佬教程为你收集整理的php – Symfony2子域路由 – 不同的捆绑包全部内容,希望文章能够帮你解决php – Symfony2子域路由 – 不同的捆绑包所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。