4

I have a project in Symfony2 that supports multiple domains and multiple pages per site all running on the same code base so that we can maintain a single code base.

I could pass all incoming requests to a 'domain controller' bundle and allow the controller determine what domain it is and include appropriate bundles for that domain, or is there a better way to approach this?

2
  • Unfortunately, I think the long way is the only way in this case. Pass all routes to a controller in the first bundle and then divi it up from there (sending them to the proper bundles that would ultimately produce the desired site/pages) Commented Nov 26, 2011 at 4:26
  • Could you use Apache to proxy requests from domain1/some-page to shared-domain/domain1/some-page and use normal routing to do the rest? Commented Apr 21, 2012 at 17:58

1 Answer 1

1

This is not supported in Symfony 2.0. However, it's planned for 2.1.

Sign up to request clarification or add additional context in comments.

1 Comment

Actually this has landed for 2.2, which is set for a release in February '13.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.