How to structure an enterprise MVC app, and where does Business Logic go?

前端 未结 8 1414
夕颜
夕颜 2020-12-12 15:05

I am an MVC newbie. As far as I can tell:

  • Controller: deals with routing requests
  • View: deals with presentation of
8条回答
  •  既然无缘
    2020-12-12 16:02

    MVC is not a complete architecture for your needs, it covers only the presentation layer. Your controllers should talk to a business layer an get back Model objects. The business layer can talk to other layers, like database-access, web services, file system, etc.

提交回复
热议问题