English 中文(简体)
Sencha Touch - MVC Explanation
  • 时间:2024-09-17

Sencha Touch - MVC


Previous Page Next Page  

MVC stands for Model View Controller. It is an architectural pattern which separates the apppcation into logical components making it more manageable.

The following diagram shows how MVC architecture works −

MVC

Controller − Controller controls whole apppcation it notify view if model is changed and performs actions based on user inputs.

View − It contains the interface part of the apppcation which is visual to user. It notify controller to change model on user input.

Model − It contains the objects which binds the store data to view. It is representation of the real world object which basically deals with database. It also notify controller for any change in view.

Advertisements