Model View Controller
(MVC)
BROUGHT TO YOU BY
What it is
MVC is a template that defines the structure of
a system and the organizational principles for
building software.
Objectives of MVC
Promote code usability

Implement separation of
tasks
Components
Model

• The software logic
• Business rules

View

• The user interface

Controller

• Communication between users and models
Separation of tasks
Software Logic
User
Interface

Separation

Business
Logic

Application
Data
How it works
1

2

Controller

Request

5

Contacts

3

Shows

Model
4

View

Delivers

Returns

{ Abstraction Layer }

Database

Model view controller (mvc)