CodeIntermediate

Model-View-Controller

Also known as MVC · Model View Controller

An architectural pattern that separates domain data and behavior, its presentation, and input handling or coordination.

In the real world

A controller receives a request, asks a model for data, and chooses a view to present the result.

Related

Go a little deeper