MVC (Model – View – Controller) Pattern in Salesforce

MVC (Model – View – Controller) Pattern in Salesforce

M – Model(Object, Fields, Relationships, Apex Classes)
V – View(Visualforce page, Pagelayouts, Record Types, Force.com Sites, Components)
C – Controller(Validation Rules, Controllers in a Visualforce page)
Model
  1. The database layer
  2. Contains objects, fields, and security
Controller
  1. The business logic layer
  2. Links the Model to the View
  3. Contains Workflow, Validation Rules, Apex
View
  1. The user interface layer
  2. Tabs, Page Layouts, Visual Force

Leave a Reply