本文介绍了什么是MVC web应用WRT的实际模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

混乱是因为不同的MVC建筑风格,图浮在互联网上:
既然问题是过于宽泛我想集中在用于web应用的MVC的。

说: Zend框架

例1:也许是最好的一个我都看到了。

例2:

例子3:

                                    

模型 - 视图 - 控制器的概念。实线重新presents有直接的关联,虚线间接关联(例如经由观察者)。

An example of MVC vs MVP:

解决方案

Since no answer was posted, I decided to post one. This is largely based on
Model-View-Controller (MVC) Architecture (WEB) (PDF) . Pointed to by: Tom Ingram (Thanks).

The article is by:
John Deacon is a lecturer and writer. Object-Oriented Analysis and Design: A PragmaticApproach. (for more on the author refer the section About the author here )

Now, the diagram best suited for the MVC architecture is:
                  

The three parts:

Model-View-Controller:

Model-View-Controller:

Model-View-Controller:

*Read carefully and digest.


There is also about (go through them):

"Model" confusion

& about how the communication should occur:

I think this should give us a very clear picture of What is the actual pattern for MVC?.

这篇关于什么是MVC web应用WRT的实际模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 13:07
查看更多