DEV Community

Cover image for Introduction — MVC Framework
MAHMOUD ABDELSAMEA for Obaaa

Posted on

Introduction — MVC Framework

What is MVC

Model-View-Controller (MVC)

Architectural Style The application is separated into three main parts: model, display, and control unit. Each of them is created and processed to deal with specific parts of the application.

MVC is one of the most advanced web development styles to meet modern development standards that allow for expansion and facilitate development.

MVC components

Model

Is responsible for transferring data to and from the application and database portions.

This can be either data transferred between the View and Controller parts or any data related to the software parts.

For example, a customer’s model imports client information from the database, sends it for processing, and then resumes it to the database or uses it for viewing.

View

The display pane is used for UI components in the application, for example the client page will contain components such as text boxes, drop-down menus, images, and so on. It is the interaction with the end user.

Controller

It controls and acts as a mediator between View and Model, handles the data provided by Model, renders it to View, receives and processes end user input in View, and so on.

For example, the client requests its data via the view, receives the Controller request, prepares the data from the database via Model, and sends it back to view

Top comments (1)

Collapse
 
sayeed56 profile image
sayeed-56

Thanks for sharing this information