阅读背景:

通过视图模型或视图助手访问视图中的数据库是否打破了MVC范式?

来源:互联网 

I believe all of the following break the MVC paradigm but wanted to double check if this was the case. In all cases the view is directly accessing data rather than having the data being passed in. From my understanding of MVC, it should never do that. The controller should get all the data that is necessary to render the view as to not couple the view and model directly. Is my understanding correct?I believe all of the following break the MVC pa




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: