Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
n MVC structure among that three layers(Model-View-Controler) which one is used for data editing (like data tier in three tier architecture)?
Posted

Controller-manage data between model and view
model-for data
view-for presentation
 
Share this answer
 
Comments
Am Gayathri 5-Dec-12 7:55am    
So controller act as middle layer right?
RahulRana723 5-Dec-12 7:58am    
yes.it get request from view,process it ,get data from model,process data getting from model and send recieved data to View for present it
Model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).

View manages the display of information.

Controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.
 
Share this answer
 
Model is the data to needed for the view
View is only for displaying your data nothing more than that.
Controller is responsible for handling request and response.

For example when an user send an request to a server for getting some data. First Controller process the request for fetching data from server and that data set to the model and then model return to the view.
 
Share this answer
 
Model Objects

Model objects encapsulate the data specific to an application and define the logic and computation that manipulate and process that data

A controller object
acts as an intermediary between one or more of an application’s view objects and one or more of its model objects.

and view only display informatin in different format.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900