Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

MVC (Model-View-Controller) is an architecture. where the workflow of MVC is Controller -> Model -> View. Why MVC is called instead of CMV?

HTTP request comes to the controller then controller categorized an action, then send request to the Model to get data for the categorized action, then finally send the action to the view and process the view to send as a HTTP response. so the workflow is Controller-Model-View.

user-image
Question ajoutée par Nobi Hossain , Software Engineer , Era-InfoTech
Date de publication: 2017/03/08
Murad Aliasgarov
par Murad Aliasgarov , Front End Developer , Prevayl

MVC does not represent a workflow. It is not meant to describe how data flows through the application, it is a statement of roles.

Controller knows about views and models. Views know about Models. Models just know about themselves. So hence the naming convention MVC

Ahmed Hussin
par Ahmed Hussin , Co Founder , Ghadi

Usually the model is created first

Shahid Riaz Qureshi
par Shahid Riaz Qureshi , Senior Software Engineer , Royal IHC

MVC is a architecture or a pattern where the Model, View and the Controller are the main components.

It was introduced as MVC but it can be CMV, VCM, etc.

Imad Abukhadra
par Imad Abukhadra , IT Operations Manager , retailGreen Inc

Well, seems the name might be related to the request/ response journey and the rendering process.

However, Please review the link I have visited during my search on this subject.

http://theartandscienceofruby.com/2016/07/05/why-is-it-called-mvc/

 

Salem Al Badawi
par Salem Al Badawi , Web Developer , Electronic Company for High Technology

as i know  the name did not put because of the workflow  but because of the major  role of the part  

  • The model is the central component of the pattern. It expresses the application's behavior in terms of the problem domain, independent of the user interface.It directly manages the data, logic and rules of the application.

 

  • view can be any output representation of information, such as a chart or a diagram. Multiple views of the same information are possible, such as a bar chart for management and a tabular view for accountants.

 

  • The third part, the controller, accepts input and converts it to commands for the model or view.

 

 and at the end its just a name  for software architectures introduced   by Trygve Reenskaug   into Smalltalk-76 while visiting the Xerox Palo Alto Research Center (PARC)in the 1970s , In the 1980s, Jim Althoff and others implemented a version of MVC for the Smalltalk-80 class library. Only later did a 1988 article in The Journal of Object Technology (JOT) express MVC as a general concept. 

 

 

That what i think 

More Questions Like This