What is MVC

What is MVC

MVC(Model-View-Controller):

architectural pattern separates app into three main components Model, View, and Controller. The MVC pattern help you to create app that more testable and easier to update

Model:

Class that represent the data of the app. The model class use validation logic to enforce business rules for that data. Typically model objects retrieve and store model state in database.

View:

view are the components that display the app’s user interface (UI) generally this UI display model data

Controller:

Class that

  1. Handle browser requests
  2. Retrieve model data
  3. Call view templates that return response