2015-08-13 23:54:40 +02:00
|
|
|
---
|
|
|
|
layout: pattern
|
|
|
|
title: Model-View-Controller
|
|
|
|
folder: model-view-controller
|
2015-08-15 18:03:05 +02:00
|
|
|
permalink: /patterns/model-view-controller/
|
2015-08-16 17:07:36 +05:30
|
|
|
categories: presentation_tier
|
2015-08-13 23:54:40 +02:00
|
|
|
tags: pattern_tag
|
|
|
|
---
|
|
|
|
|
|
|
|
**Intent:** Separate the user interface into three interconnected components:
|
|
|
|
the model, the view and the controller. Let the model manage the data, the view
|
|
|
|
display the data and the controller mediate updating the data and redrawing the
|
|
|
|
display.
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
**Applicability:** Use the Model-View-Controller pattern when
|
|
|
|
|
2015-08-15 18:03:05 +02:00
|
|
|
* you want to clearly separate the domain data from its user interface representation
|