Tuesday, 16 April 2013

Salesforce based on MVC


Blog discuss very basic understanding of MVC with respect to Salesforce.

MVC

  • Front End(User Interface) - View
  • Entity/ Object to hold data - Model
  • Business logic - Controller
In simple terms, Controller fetches the data from data source and populates Model(object) to display it on View.


Salesforce

  • Front End(User Interface) - Visual Force page, Native page layout.
  • Entity/ Object to hold data - Salesforce Object (standard, custom)
  • Business logic - Apex Class behaves as controller.