MVC is a widely popular software design pattern,as early as in the 1970s,IBM introduced the Sanfronscisico on the project,in fact ,is the MVC design pattern research.
Introduction 31576
The Model-View-Controller(MVC)design pattern is cited as the basis for the architecture of several web application frameworks,such as ASP.Net,Rails,and Struts.The MVC pattern was originally implemented in the Smalltalk-80 programmin-
g environment developed at Xerox PARC(Goldberg and Robson,1985).As it has been adapted for web frameworks the MVC pattern has evolved in different ways,resulting in implementations that differ significantly from each other and from the original Smalltalk implementation.
MVC design idea
MVC in English or Model-View-Controller,an application that is input process,output process in accordance with the Model,View,Controller isolated manner,such an application is pided into three layers-model layer,view layer,control layer.
View(View) on behalf of the user interface for Web applications can be summed up as HTML interface,but has the potential to XHTML,XML,and Applet.With the application of the complexity and scale,the interface has become challenging to deal with.An application may have different views,MVC design pattern to deal with the view of the limited view of data acquisition and processes.The handing of business process to the model to deal with.For example,a view only accept orders from the model data and display to users,as well as input user interface data and the request passed to the control and model.
Model:is the business process of the processing and business rules.Business process layer is the other black-box operation,the model view to accept the request of the data,and return the results of the final.The design of business models can be said to the most important core of  MVC.Currently popular model of EJB applications is a typical example of the application of technology from the perspective of the model further delineation in order to make full use of existing components,but it can not be used as a framework for application design model.It only tell you that according to design of this model will be able to use certain technology components,thereby reducing the technical difficulties.Example of a developer,you can focus on business model design.
Control can be interpreted as a request received from the user,matching the model and view together to complete the user’s request.The role of pision of control layer is also very clear that it clearly tell you that is a distributed,and what kind of model to choose,choose what kind of view,to complete what the user requests.Control layer does not do any data processing.For example,the user clicks on a link and control layer to receive a request,does not deal with business information,only the user’s information to the model,to tell what model to choose the view to meet the requirements to return to the user.Therefore,a model may correspond to multiple views,one view may correspond to multiple views,one view may correspond to a number of models.
The benefits of MVC
Most of the process of language use such as ASP,PHP developed Web application-
s,the development of the initial template is the mixed layer of the data programming.For example,send the request directly to the database and display HTML,development speed is often faster,but because of the separation of data pages is not very direct,and therefore reflect the business model difficult to look or model reusability.Very flexible product design efforts,it  is difficult to meet the changing needs of users.MVC layered on the application of the requirements,although additional work would take,but clearly the structure of products,product application though the model can be better reflected.
First of all,the most important thing is that there should be a number of view corresponds to the ability of a model.In the current rapidly changing user requiremen-
ts,it may have access to a wide range of applications.For example,orders for the model may be orders of the system as well as online orders,or orders for other systems,but the handling of orders is the same,that is to say the handling of orders is the same.MVC design pattern in accordance with a orders for models and multiple views can solve the problem.
上一篇:PHP编程语言英文文献和中文翻译
下一篇:破碎机偏心速度英文文献和中文翻译

AngularJS技术介绍英文文献和中文翻译

开关电源水冷却系统英文文献和中文翻译

减数分裂和基因重组英文文献和中文翻译

太阳能最大功率点追踪和...

移动码头的泊位分配问题英文文献和中文翻译

虚拟船舶装配集成建模方...

中学生科学探究中对等论...

基于Joomla平台的计算机学院网站设计与开发

浅论职工思想政治工作茬...

浅谈高校行政管理人员的...

压疮高危人群的标准化中...

酵母菌发酵生产天然香料...

上海居民的社会参与研究

提高教育质量,构建大學生...

AES算法GPU协处理下分组加...

STC89C52单片机NRF24L01的无线病房呼叫系统设计

从政策角度谈黑龙江對俄...