Saturday, April 4, 2015

MVC & Visualforce

What is MVC?

Model–View–Controller (MVC) is a software architectural pattern for implementing user interfaces. It divides a given software application into three interconnected parts:

  • Model - A model consists of application data, business rules, logic and functions
  • View - A view can be any output representation of information
  • Controller - A controller accepts input and converts it to commands for the model or view

MVC Paradigm

Visualforce and the MVC Pattern

MVC Example in Visualforce