然后,这个意见似乎是错误的,我找到一些文章,这些文章说这个观点可以直接与模型交流.
http://r.je/views-are-not-templates.html
http://www.tonymarston.net/php-mysql/model-view-controller.html
Model,View,Controller confusion
和
How should a model be structured in MVC?
这些文章中的大多数引用了维基百科,模型视图控制器的一个块,引号是:
A view queries the model in order to generate an appropriate user interface (for example the view lists the shopping cart’s contents). The view gets its own data from the model. In some implementations,the controller may issue a general instruction to the view to render itself. In others,the view is automatically notified by the model of changes in state (Observer) that require a screen update.
啊,这是从维基百科,这样一个权威的网站,一定是对的!
但现在,当我打开MVC http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller的维基链接时,该页面将在今年9月14日(2013年)进行修改,上面的句子已经过去了.
视图的新定义是:
A view requests from the model through the controller the information that it needs to generate an output representation to the user.
现在我再次感到困惑,新的定义表示视图应该通过控制器从模型中请求数据…
视图访问模式是否直接在地球上?