-
25 May 2012 1:55 AM #1
Answered: How to pass data between two controllers in sencha touch 2.0?
Answered: How to pass data between two controllers in sencha touch 2.0?
I am working on sencha touch 2.0 MVC app,i have two controllers in my app.I want to send data from one controller to another.I used push() method to send data but i guess,it's not correct way to do it.So please help me to solve it.Any help would be highly appreciated.Thanx in advance.
-
Best Answer Posted by bluehipy
Inside controller C1:
method:function(){
var c2 = this.getApplication().getController('C2');
c2.passSomeData( data );
}
-
25 May 2012 4:31 AM #2
Inside controller C1:
method:function(){
var c2 = this.getApplication().getController('C2');
c2.passSomeData( data );
}


Reply With Quote