Under an MVC framework, which directory structure would be expected by other developers?

后端 未结 4 511
谎友^
谎友^ 2021-01-13 01:32

Generally, MVC frameeworks have a structure that looks something like:

/models
/views
/controllers
/utils

However, in a web application sui

4条回答
  •  暖寄归人
    2021-01-13 01:54

    2 is a good start. You should consider having a common folder in which you can store any common models, views and utils used by all apps in the application suite.

    /app1
       /models
       /views
       /controllers
       /utils
    /app2
       /models
       /views
       /controllers
       /utils
    /common
       /models
       /views
       /utils
    

提交回复
热议问题