Вопрос

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