Model View Controller (MVC Architecture in Salesforce) is a software pattern that separates the representation of information from the user’s interaction with it.
MVC architecture in Salesforce pattern contains below three modules:
The schema and data salesforce use 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. (sObjects are any objects that can be stored in the Force.com platform database)
How the schema and data are represented. Visualforce is used to present the data to users.
How the interface actions. Controllers are used to perform the actions whenever users interact with visual force.
The layers have clear separation so it allows greater reliability if we want to change any layer. For example, if can change the look and feel of an application without recompiling Model or Controller code.
MVC provides multiple types of views all accessing the same code.
It makes it possible to have lower-level programmers develop and maintain user interfaces. Development time can be significantly reduced because Controller programmers focus solely on transactions and view programmers focus solely on presentation.
The separation between layers makes it easier to maintain, test, and deploy apps.
< < Previous
Next > >
The batch is going to start shortly. Fill the form given below to Register yourself now.
Fill the form below to get a demo of this course.
Online Salesforce Development Course is soon going to be launched. Please fill the form and we will notify you about the course.