Docsity

Understanding the Role of Model, View, and Controller in Web Applications, Appunti di Programmazione e Tecnologie Web

Toggle sidebar
bg1
Model: manages data and the business logic
View: presentation of information
Controller: accepts the input and converts it to commands for model or view
User sends a request to a server (controller-INPUT LOGIC), the controller
manipulates the model(there is the database that interact with the model)
(BUSINESS LOGIC: how to keep data consistent, what to do next)
Then the model updates the view(UI LOGIC), so the presentation of information,
which is then viewed by the user
The model never takes the initiative, they are always the view and the controller
Router matches the request (URL), and then the controller handles the request
ORM (object relational mapping): different objects within your application, what
objects you want to make consistent
REST-API (Representational State Transfer)
One of the first mashup applications (Google Maps)
REST is an architectural style based on the principles of
Client-Server communication
Statelessness
Cacheable responses
Uniform interface

Anteprima parziale del testo

Scarica Understanding the Role of Model, View, and Controller in Web Applications e più Appunti in PDF di Programmazione e Tecnologie Web solo su Docsity!

Model: manages data and the business logic View: presentation of information Controller: accepts the input and converts it to commands for model or view User sends a request to a server (controller-INPUT LOGIC), the controller manipulates the model(there is the database that interact with the model) (BUSINESS LOGIC: how to keep data consistent, what to do next) Then the model updates the view(UI LOGIC), so the presentation of information, which is then viewed by the user The model never takes the initiative, they are always the view and the controller Router matches the request (URL), and then the controller handles the request ORM (object relational mapping): different objects within your application, what objects you want to make consistent REST-API (Representational State Transfer) One of the first mashup applications (Google Maps) REST is an architectural style based on the principles of  Client-Server communication  Statelessness  Cacheable responses  Uniform interface