O'Reilly logo

Sencha MVC Architecture by Ajit Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Controller

Controllers act as a central place to handle the events originating from various views. It helps us to take care of the cross-view interactions to build the application flow.

ExtJS

In the Ext JS framework, a controller does the following:

  • Uses Ext.util.Observable mixin which acts as the foundation for raising events and registering handlers for the events.
  • Loads the models, views, stores, and other dependencies mentioned in the requirements, before creation.
  • Calls the constructor.
  • Creates getter methods for: model, store, and view.
  • Creates getter methods for the ref objects.
  • Creates the components referred in the ref config, if references are to be cached (default behavior, unless forceCreate is set to true). If the component is not cached ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required