开发者

PHP mvc vs layered design

开发者 https://www.devze.com 2023-01-17 23:21 出处:网络
I have some questions regarding MVC that I would like to clarify. At our company we use two in-house developed frameworks for building PHP applications. One is an MVC framework while the other uses a

I have some questions regarding MVC that I would like to clarify. At our company we use two in-house developed frameworks for building PHP applications. One is an MVC framework while the other uses a 3-tier design with a presentation layer, a logic layer an a data access layer. We find the 3-tier design more "object oriented friendly". The question is if there is something we are missing in MVC, because we usually end up using the MVC framework for simple CMS systems and the other framework for more logic-intensiv开发者_高级运维e applications (like, for example an accounting application)

thanks


That's somewhat comparing apples and oranges. There is no "versus". V and C in MVC are the presentation layer, whereas business logic and DAL is both layers in the M. As long as you keep these apart, there is no reason why your design cannot use MVC as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消