Legacy MVC
Overview
Legacy MVC supplies the model, view, and controller framework for modules running in backward compatibility mode. The index, ListView, DetailView, and EditView legacy screens are deprecated for registered stock modules that use Sidecar by default. The Sidecar equivalents remain supported. A Sidecar view existing in a module is not sufficient to trigger this deprecation; custom modules and stock modules that remain BWC by default are outside its scope. This change does not specify a removal release. See Backward Compatibility for the registry, warning behavior, and migration guidance.
Model-View-Controller (MVC) Overview
A model-view-controller, or MVC, is a design philosophy that creates a distinct separation between business-logic and display logic.
- Model: This is the data object built by the business/application logic needed to present in the user interface. For Sugar, it is represented by the SugarBean and all subclasses of the SugarBean.
- View: This is the display layer which is responsible for rendering data from the Model to the end-user.
- Controller: This is the layer that handles user events such as "Save" and determines what business logic actions to take to build the model, and which view to load for rendering the data to end users.
SugarCRM MVC Implementation
The following is a sequence diagram that highlights some of the main components involved within the Sugar MVC framework.