What is MVC Framework?
MVC Components Overview
- Model- This component of the framework communicates to all the data/information related logic that you work with. This component can represent any data related to business logic or information that gets transferred between the controller and the view components. For instance, the customer object in this component would retrieve from the database, the customer information and after manipulating, would update it wither to render data or send it back to the database.
- View- This is used for all the User Interface logic of the application. For instance, the customer view includes all the User Interface components like dropdowns, text boxes, and so on, which enables the final user to interact with.
- Controller- This component functions as an interface between the View and Model components, where all the incoming requests and business logic are processed, manipulating the data (using model) and interacting with the view, in order to render the final output. For instance, the customer controller component handles all the inputs and interactions from the View and updates the database using the Model. The same controller can be used to view the Customer data.
Why do you need MVC framework?