I am checking to see if there are any recommendations on creating a multisite instance of the Symfony CMF.

My initial thoughts are to launch with Symfony 2.2 and would like to rapidly adopt the CMF once it becomes stable. If there are any known best practices to allow this, please let me know.

有帮助吗?

解决方案

The CMF for now has no special support for multisite. The route document however does map the hostname field so multi-domain routing should already work.

Unless you want to mix the routes from all domains, you would want to separate the routes tree by domain and build something into the route provider to handle the domain name. A pull request on the cmf RoutingBundle would definitely be appreciated.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top