0

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?

swordfish
  • 4,899
  • 5
  • 33
  • 61

1 Answers1

1
this.getController('Foo').bar();
Evan Trimboli
  • 29,900
  • 6
  • 45
  • 66