Showing posts with label MVC. Show all posts
Showing posts with label MVC. Show all posts

Saturday, March 10, 2018

Salesforce Model-View-Controller (MVC) pattern

Salesforce Model-View-Controller (MVC) pattern

Salesforce Model-View-Controller (MVC) pattern contains below three modules:
  • Model
  • View
  • Controller
1. Visual Force pages, Page Layouts, Tabs comes under View Layer of Model View controller .
2. Workflows, Apex Classes, Triggers comes under Controller part in Model View controller .
3. Objects, Fields, Relationships comes under Model Layer of Model View Controller .

Thursday, June 21, 2012

MVC architecture in Salesforce

In Cloud Computing, generally Database is provided by the Service providers only..
Tables in SQL are Objects in Salesforce.
We develop Visual Force pages in Salesforce and we will control the pages with the help of controllers coded in Apex.
Apex is an in-house technology as well as language, which is a subset of Java.
It inherits all the OOPS concepts of Java.
So, we can conclude that
Model : Objects
View : Visual Force Pages
Controller : Apex classes