The controller manages the loading and unloading of layouts.
Extending controller
Applications may choose to extend the controller to provide a custom
implementation. Your custom controller class name should be the capitalized
appID for your application followed by the word
"Controller".
Example:
SUGAR.App.PortalController = SUGAR.App.controller.extend({
loadView: function(params) {
// Custom implementation of loadView
// Should call super method:
SUGAR.App.Controller.prototype.loadView.call(this, params);
}
});