View Full Version : How to exchange data between two controllers
21 Sep 2012, 6:10 AM
We are following MVC pattern for our application and jumping to other controller by 'this.application.runAction('Controllername', 'Index') '. is there any way to pass tha data between these two controllers?
24 Sep 2012, 5:38 AM
You can do it two ways...
First (and my preferred) is fire an event on the application and have your controllers listen to these events. This allows your code not be tightly coupled with your app structure.
Resolve the controller (getController method on the application) and execute a method on that controller.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.