菜单
  
    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. 巴金《激流三部曲》高觉新的悲剧命运

  10. NFC协议物理层的软件实现+文献综述

  11. C++最短路径算法研究和程序设计

  12. 江苏省某高中学生体质现状的调查研究

  13. 现代简约美式风格在室内家装中的运用

  14. 上市公司股权结构对经营绩效的影响研究

  15. 浅析中国古代宗法制度

  16. 高警觉工作人群的元情绪...

  17. g-C3N4光催化剂的制备和光催化性能研究

  

About

优尔论文网手机版...

主页:http://www.youerw.com

关闭返回