Model view controller (MVC) is a software architecture pattern
which separates the representation of information from the user’s
interaction with it.
Generally, This pattern is used to separate application's concerns.
Generally, This pattern is used to separate application's concerns.
- Model - Model represents an object carrying data. It can also have logic to update controller if its data changes.
- View - View represents the visualization of the data that
model contains.
- Controller - Controller acts on both model and view. It
controls the data flow into model object and updates the view
whenever data changes. It keeps view and model separate.
Salesforce MVC
Model : What schema and data does salesforce uses to
represent the system completely. In salesforce, we can say that
sObjects are the model as every entity in salesforce is mapped to
some sObject.
View : How the schema and data is represented. Visualforce is used to present the data to users.
Controller : How the interface actions. Controllers are used to perform the actions whenever users interact with visual force.
View : How the schema and data is represented. Visualforce is used to present the data to users.
Controller : How the interface actions. Controllers are used to perform the actions whenever users interact with visual force.
0 comments:
Post a Comment