How to structure this Symfony web project?

前端 未结 3 1633
余生分开走
余生分开走 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条回答
  •  梦毁少年i
    2021-02-06 10:39

    I would use two symfony applications. One for the public & members and then a separate for the admin functions. Unless the app is very complex and hard to maintain, it's simple to setup the security so that only members can view restricted content.

    Assuming you're on a virtual dedicated or similar, setting up the subdomains is all done in Apache. If not, and you're using a shared host, then I believe it will be very difficult to setup symfony to work with subdomains.

提交回复
热议问题