PDA

View Full Version : How do I reference my application from a controller?



CarClub
14 May 2012, 1:17 PM
As usual, documentation is silent about how to reference the application from within a controller, despite showing sample code (http://docs.sencha.com/touch/2-0/#!/guide/apps_intro) like:


doLogin: function() { var form = this.getLoginForm(), values = form.getValues(); MyApp.authenticate(values); }

there is nothing bound do MyApp - it is undefined.

CarClub
14 May 2012, 1:32 PM
Nevermind, found getApplication()