PHP mvc vs layered design
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.
精彩评论