Thursday 7 March 2013

call controller method from another controller in sencha touch 2


In Sencha Touch 2, if you need to call a controller method from another controller below is the code

this.getApplication().getController('controller name').functionname();

This way, you can avoid the code duplication across controllers. Hope you enjoy this Post.

No comments:

Post a Comment