How on one symfony to launch 2 sites? So that classes, services, etc. are available immediately for 2 sites.

There was an idea to create 2 web folders (well, rename accordingly), but the routing is still the same. It was also the idea to create an environment, but the files on the web will be the only ones including robots.txt

Tell me how to do it.

  • Well, I look at the domain what is requested, then I decide what content to give. - digi
  • It is possible in more detail, as I understand it, that in AppKernel.php you need to write, so that different bundles are connected depending on the site? But what about the developer’s environment? - Idaho37
  • for more details, then it’s necessary to set the task in more detail :) there are some sketches on multisite in the cms-ke smart-core.org , which is still a bit frozen, I hope the development will soon continue;) digi
  • One more question. I have version 2.1.3 and when I try to enter a command, I get the error "Parse error: syntax error", what am I doing wrong? - Idaho37
  • Parser error means that you have made a mistake in the code or configuration file. - Yuriy

0