Skip to content

Latest commit

 

History

History
12 lines (12 loc) · 742 Bytes

mvc.md

File metadata and controls

12 lines (12 loc) · 742 Bytes

Notes

MVC

MVC separates application into three components -

  1. Model
  • represents shape of the data and business logic. It maintains the data of the application. Model objects retrieve and store model state in a database.
  1. View
  • A user interface. View display data using model to the user and also enables them to modify the data.
  1. Controller
  • Handles the user request. Typically, user interact with View, which in-turn raises appropriate URL request, this request will be handled by a controller. The controller renders the appropriate view with the model data as a response.