Now it is time to implement the last piece of the Static Data module. The goal is to implement a controller that has the most generic code that will provide the functionalities for all the screens without us creating any specific methods for any screens.
So let's start with the base of the controller. We are going to create a new class named Packt.controller.staticData.AbstractController
:
Ext.define('Packt.controller.staticData.AbstractController', { extend: 'Ext.app.Controller', requires: [ // #1 'Packt.util.Util' ], stores: [ // #2 'staticData.Actors', 'staticData.Categories', 'staticData.Cities', 'staticData.Countries', 'staticData.Languages' ], views: [ // #3 'staticData.AbstractGrid', 'staticData.Actors', 'staticData.Categories', 'staticData.Cities', 'staticData.Countries', 'staticData.Languages' ], init: function(application...