0
votes

I am building an application in extjs 4 (MVC). I often find the need to switch back and forth between two controllers. But i cant seem to find how in the documentation.

My scenario is like this.

Ext.define('mycontroller',{
 someMethod: function() {
 }
})

Ext.define('mycontroller1',{
 someMethod: function() {
   var someAction = function() {
     //need to call somethod in mycontroller
   }
 }
})

Any ideas?

1

1 Answers

1
votes
this.getController('Foo').bar();