Thursday, September 4, 2014

Simple MVC Concept



Basically MVC means Model-View-Controller.

View is the User Interfaces.That means what user or client see

Model is the back end. That means what actually happen in the server. This includes getting data from database ,handling business logic

Controller is the conncetion between View and Model

Let's understand this more clearly


Imagine that user need to login to a application

First he request permission with User name and Password. His initial request goes to the controller(in MVC) with parameter values. Then controller knows send it to the model. and model is responsible for check the user is exist or a valid user, using Data Source(normally Data base). Then model receive the status of the user and send it to the controller back. Then Controller pass the result data to the related view and then user can see whether he is granted to carry on or login failed.

No comments:

Post a Comment