MVC WRT WebApplications 的实际模式是什么?
造成混乱的原因是互联网上流传着不同的 MVC 架构图: 由于问题太宽泛,我想集中讨论用于 Web 应用程序的 MVC。
说:Zend Framework
。
example1:
可能是我见过的最好的一个。
示例 2:
示例 3:
&n bsp;
模型-视图-控制器概念。实线表示直接关联,虚线表示间接关联(例如通过观察者)。
我主要关注的是视图如何与控制器交互以及视图如何与控制器交互。型号反之亦然。
MVC 与 MVP 的示例:
The confusion is because of the different MVC architechture diagrams floating on the internet:
Since the question would be too broad I want to concentrate on the MVC's used for WebApplications.
Say: Zend Framework
.
example1:
Probably the best one I have seen.
example 2:
example 3:
Model-view-controller concept. The solid line represents a direct association, the dashed an indirect association (via an observer for example).
What I am mainly concentrating is on, how the view interacts with controller(s) & model(s) vice versa.
An example of MVC vs MVP:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于没有发布答案,我决定发布一个。这很大程度上是基于
模型-视图-控制器 (MVC) 架构 (WEB) (PDF)。指向者:Tom Ingram(谢谢)。
文章作者:
约翰·迪肯是一位讲师和作家。面向对象的分析与设计:务实的
方法。 (有关作者的更多信息,请参阅
关于作者
此处 )现在,最适合 MVC 架构的图是:

三部分:
Model
-View-Controller:模型-
视图
-控制器:模型-视图-
控制器
:*仔细阅读并消化。
还有关于(通过它们):
“模型”混淆
&关于沟通应如何进行:
我认为这应该让我们非常清楚地了解
MVC 的实际模式是什么?
。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 Pragmatic
Approach. (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?
.