Now, we will create controllers for our data.
Usually, each view component has a corresponding controller class with the same prefix.
But the first controller we have to deal with is the controller called Main. This controller has already been produced automatically in Sencha Cmd. If we need more processing or logic for the whole application, we should implement this class. Usually, the
view class and controller class names match, but this is a special case where they do not because Sencha Cmd generates the Main class. So, it is best to leave it as is and not change the name.
app/controller/Main.js code, please see the source file:
Although we've talked a lot about Main, we are ...