菜单
  
    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.
  1. 上一篇:PHP编程语言英文文献和中文翻译
  2. 下一篇:破碎机偏心速度英文文献和中文翻译
  1. 汽车乘员舱的声振耦合英文文献和中文翻译

  2. 立体光照成型的注塑模具...

  3. 数控机床英文文献和中文翻译

  4. 工业机械手英文文献和中文翻译

  5. 低频振动的铁路车轴的状...

  6. 接头的形状对沥青塞接头...

  7. 数控加工技术英文文献和中文翻译

  8. 大众媒体对公共政策制定的影响

  9. 酸性水汽提装置总汽提塔设计+CAD图纸

  10. 杂拟谷盗体内共生菌沃尔...

  11. 中考体育项目与体育教学合理结合的研究

  12. 乳业同业并购式全产业链...

  13. 十二层带中心支撑钢结构...

  14. java+mysql车辆管理系统的设计+源代码

  15. 电站锅炉暖风器设计任务书

  16. 河岸冲刷和泥沙淤积的监测国内外研究现状

  17. 当代大学生慈善意识研究+文献综述

  

About

751论文网手机版...

主页:http://www.751com.cn

关闭返回