Is ZF2 based on MOVE?

后端 未结 2 1817
甜味超标
甜味超标 2020-12-15 12:22

I\'m wondering if ZF2 is based entierly on MOVE instead of the classic MVC.

Somewhere I read that is really bases on MOVE (http://cirw.in/blog/time-to-move-on) but e

2条回答
  •  爱一瞬间的悲伤
    2020-12-15 13:03

    MOVE (Models, Operations, Views and Events)
    MVC (Models, Views, Controllers)
    

    The problem with MVC is that you end up stuffing too much code into controllers, to overcome this problem MOVE is another possible option to choose in zf2 projects, Because in this architecture you can split your controller into Events and Operations.

    Question: Is ZF2 based entirely on the MOVE architecture?

    I don't think ZF2 is designed entirely on MOVE architecture. ZF2 follows the SOLID object oriented design principle with loosely coupled MVC architecture which provide more flexibility in terms of usability.

    Question: Can I develop my projects using the MOVE architecture in ZF2?

    Yes ZF2 provides you with everything to support both architectures (MOVE, MVC). It provides Models, Views, Controllers(Operations), Events. It is up to the developer which architecture he would like to use.

    ZF1 and ZF2 is compared in another thread.

    MVC or MOVE

    SOLID Object Oriented Programing

提交回复
热议问题