Archive

Posts Tagged ‘mvc’

What is MVC Architecture? (Model – View – Controller)

April 19th, 2009 71 comments

MVC Architecture has implemented by Trygve Reenskaug at 1979 for the first time. It was implemented on Smalltalk at Xerox labs. Then benefits and advantages of this architecture has been accepted by most of the coders and software engineers.

It was an information about MVC’s history above. Now lets talk about what really MVC is. What do you understand from MVC. The word M stands for Model, V stands for View and C stands for Controller. I am going to mention about each item.

The figure above may help you while thinking what structure it might have. Let’s start with Model.

Model:
It handles data processing and database works part. Model processes events sent by controller. After processing these events then it sends processed data to controller (thus, controller may reprocess it) or directly to view side.

View:
View prepares an interface to show to the user. Controller or model tells view what to show to the user. Also view handles requests from user and informs controller.

Read more…

VN:F [1.9.22_1171]
Rating: 8.4/10 (501 votes cast)
VN:F [1.9.22_1171]
Rating: +172 (from 204 votes)
Categories: General, Programming Tags: , , ,