How to structure this Symfony web project?

前端 未结 3 1630
余生分开走
余生分开走 2021-02-06 09:49

I am new to Symfony and am not sure how to best structure my web project. The solution must accommodate 3 use cases:

  1. Public access to www.mydomain.com for general
3条回答
  •  我在风中等你
    2021-02-06 10:30

    I think you should separate your applications in public, member and admin. The routing would be done by apache: you can use 3 document roots pointing to separate folders. Mutualizing your code can be done through the use of plugins. You can override a plugin's code : for a specific application if you need to. If the public and member access have very many things in common, you could consider using the same application for both accesses.

提交回复
热议问题