Thursday, 12 February 2015

Salesforce MVC Architecture

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.

  • 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.




Happy Learning !! 





Related Posts:

  • Jquery Colorbox Modal Window in Visualforce Page Displaying a modal dialog with jQuery is easy. But what happens if you want to display that modal dialog within a visualforce page? Or what if you want to show the contents of a visualforce page inside the dialog? How can … Read More
  • Lightning Component Framework - Introduction The Lightning Component framework is a UI framework for developing dynamic web apps for mobile and desktop devices. It’s a modern framework for building single-page applications engineered for growth. The … Read More
  • Salesforce MVC Architecture 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. Mod… Read More

0 comments:

Post a Comment