Skip to content

What is the Model View Controller (MVC) pattern?

thofrey edited this page Jul 23, 2013 · 4 revisions

Model-View-Controller (MVC) is type of software architecture pattern that divides an application into three separate parts – a business logic/data persistence layer (model), user interface (view) and control logic (controller). The Model handles business logic and data integrity. The Model is sometimes talked about as the "engine" of an application. A View provides a "view" into the state of the application. With web-based software, Views can written in (X)HTML, Flash and emails as well as others. The Controller (e.g. Mach-II) receives user/system events and interacts with the Model and/or View to produce the desire results.

The main purpose of MVC is keep your business logic (model) and user interface (view) separate and independent from each other. For a more in depth look at MVC, you can read about it at Wikipedia.

Back to FAQs

Clone this wiki locally