SlideShare a Scribd company logo
MVC - In Details
History
Model–view–controller (MVC) is a software design pattern for
implementing user interfaces on computers. It divides a given
software application into three interconnected parts, so as to
separate internal representations of information from the ways that
information is presented to or accepted from the user.
Traditionally used for desktop graphical user interfaces (GUIs), this
architecture has become popular for designing web applications and
even mobile, desktop and other clients.
MVC
Model – View - Controller
HOW IT WORKS
CONTROLLER
• The controller receives user input and makes calls to
model objects and the view to perform appropriate
actions.
• A controller can send commands to the model to
update the model's state (e.g., editing a document). It
can also send commands to its associated view to
change the view's presentation of the model (e.g.,
scrolling through a document).
• Controllers act as an interface between Model and
View components
MODEL
• A model stores data that is retrieved according to
commands from the controller and displayed in the
view.
• The Model component corresponds to all the data
related logic that the user works with.
• The model manages fundamental behaviors and data
of the application.
• This could be a database, or any number of data
structures or storage systems. In short, it is the data and
data-management of the application.
VIEW
• A view generates new output to the user based on
changes in the model.
• The View component is used for all the UI logic of the
application
• The view effectively provides the user interface element
of the application. It'll render data from the model into a
form that is suitable for the user interface.
MVC works like CMV
• Controller
• Model
• View
Controller
Model
View

More Related Content

What's hot (20)

PDF
MVC architecture
Emily Bauman
 
PPT
MVC(Model View Controller),Web,Enterprise,Mobile
naral
 
DOCX
Lecture10 oopj
Dhairya Joshi
 
PPTX
Mvc pattern and implementation in java fair
Tech_MX
 
ODP
Model View Controller
Madhukar Kumar
 
ODP
What is MVC?
Dom Cimafranca
 
ODP
Why Use MVC?
Jesse Anderson
 
PPTX
MVC architecture by Mohd.Awais on 18th Aug, 2017
Innovation Studio
 
PPTX
Model view controller (mvc)
M Ahsan Khan
 
PPTX
MVC Framework
Ashton Feller
 
PPTX
Very basic of asp.net mvc with c#
Shreejan Acharya
 
PPTX
Intro ASP MVC
KrishnaPPatel
 
PPTX
Mvc fundamental
Nguyễn Thành Phát
 
PDF
Just a View: An Introduction To Model-View-Controller Pattern
Aaron Nordyke
 
PPT
Why MVC?
Wayne Tun Myint
 
PPTX
Introduction to ASP.NET MVC
Julia Vi
 
PPTX
Design patterns
Ahmed Elharouny
 
MVC architecture
Emily Bauman
 
MVC(Model View Controller),Web,Enterprise,Mobile
naral
 
Lecture10 oopj
Dhairya Joshi
 
Mvc pattern and implementation in java fair
Tech_MX
 
Model View Controller
Madhukar Kumar
 
What is MVC?
Dom Cimafranca
 
Why Use MVC?
Jesse Anderson
 
MVC architecture by Mohd.Awais on 18th Aug, 2017
Innovation Studio
 
Model view controller (mvc)
M Ahsan Khan
 
MVC Framework
Ashton Feller
 
Very basic of asp.net mvc with c#
Shreejan Acharya
 
Intro ASP MVC
KrishnaPPatel
 
Mvc fundamental
Nguyễn Thành Phát
 
Just a View: An Introduction To Model-View-Controller Pattern
Aaron Nordyke
 
Why MVC?
Wayne Tun Myint
 
Introduction to ASP.NET MVC
Julia Vi
 
Design patterns
Ahmed Elharouny
 

Similar to MVC - In Details (20)

PDF
Verbal+Visual: MVC Structure. Model, View, Controller.
Anshey Bhatia
 
PPTX
Mvc vs mvp vs mvvm a guide on architecture presentation patterns
Concetto Labs
 
PPT
Mvc 130330091359-phpapp01
Jennie Gajjar
 
PPTX
MVC.pptx
HassanAliKhan36
 
PPT
MVC architecture in software programming for interactive apps
KotiTenali
 
PDF
Model View Madness
Mike Wilcox
 
PDF
MVC in PHP
Vineet Kumar Saini
 
PPT
Web engineering - MVC
Nosheen Qamar
 
PPT
Mvc architecture
Surbhi Panhalkar
 
PPT
Model View Controller
urs_tush
 
PPTX
Using mvvm inside mvc in domain driven design
yashar Aliabasi
 
PDF
Mvc Architecture in a web based application
OnGraph Technologies Pvt. Ltd.
 
PDF
iOS architecture patterns
allanh0526
 
PDF
Model-View-Controller: Tips&Tricks
Ciklum Ukraine
 
PPTX
Class 02 Objective C
Violeta Salas
 
PDF
How I Accidentally Discovered MVVM
Bradford Dillon
 
PPTX
Concept of MVC.pptx
Taranath Jaishy
 
PDF
Task 2 - Educational Article – Model View Controller (MVC)
Shubham Goenka
 
Verbal+Visual: MVC Structure. Model, View, Controller.
Anshey Bhatia
 
Mvc vs mvp vs mvvm a guide on architecture presentation patterns
Concetto Labs
 
Mvc 130330091359-phpapp01
Jennie Gajjar
 
MVC.pptx
HassanAliKhan36
 
MVC architecture in software programming for interactive apps
KotiTenali
 
Model View Madness
Mike Wilcox
 
MVC in PHP
Vineet Kumar Saini
 
Web engineering - MVC
Nosheen Qamar
 
Mvc architecture
Surbhi Panhalkar
 
Model View Controller
urs_tush
 
Using mvvm inside mvc in domain driven design
yashar Aliabasi
 
Mvc Architecture in a web based application
OnGraph Technologies Pvt. Ltd.
 
iOS architecture patterns
allanh0526
 
Model-View-Controller: Tips&Tricks
Ciklum Ukraine
 
Class 02 Objective C
Violeta Salas
 
How I Accidentally Discovered MVVM
Bradford Dillon
 
Concept of MVC.pptx
Taranath Jaishy
 
Task 2 - Educational Article – Model View Controller (MVC)
Shubham Goenka
 
Ad

Recently uploaded (20)

PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
Build with AI and GDG Cloud Bydgoszcz- ADK .pdf
jaroslawgajewski1
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PPTX
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PPTX
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
PDF
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
PDF
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
PDF
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
Build with AI and GDG Cloud Bydgoszcz- ADK .pdf
jaroslawgajewski1
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
Ad

MVC - In Details

  • 2. History Model–view–controller (MVC) is a software design pattern for implementing user interfaces on computers. It divides a given software application into three interconnected parts, so as to separate internal representations of information from the ways that information is presented to or accepted from the user. Traditionally used for desktop graphical user interfaces (GUIs), this architecture has become popular for designing web applications and even mobile, desktop and other clients.
  • 3. MVC Model – View - Controller
  • 5. CONTROLLER • The controller receives user input and makes calls to model objects and the view to perform appropriate actions. • A controller can send commands to the model to update the model's state (e.g., editing a document). It can also send commands to its associated view to change the view's presentation of the model (e.g., scrolling through a document). • Controllers act as an interface between Model and View components
  • 6. MODEL • A model stores data that is retrieved according to commands from the controller and displayed in the view. • The Model component corresponds to all the data related logic that the user works with. • The model manages fundamental behaviors and data of the application. • This could be a database, or any number of data structures or storage systems. In short, it is the data and data-management of the application.
  • 7. VIEW • A view generates new output to the user based on changes in the model. • The View component is used for all the UI logic of the application • The view effectively provides the user interface element of the application. It'll render data from the model into a form that is suitable for the user interface.
  • 8. MVC works like CMV • Controller • Model • View Controller Model View