View Full Version : fire event from a controller to b controller

15 Jan 2012, 5:40 PM
in sencha touch pr2, i can fire a event from one controller to another controller, it works normally. the code is as following.

a controller:

this.application.fireEvent('eventname', para);

b controller:

init: function() {
eventname: this.testfunction,
scope: this

but in sencha touch3, same code cause error:
Uncaught Error: [ERROR][com.controller.bController#getObservableId] Invalid unique id of 'Kitchen.controller.bController' for this object


16 Jan 2012, 6:28 AM
I'm doing this in PR3 with no problems. I'm guessing you have some config wrong. Did you copy and paste controller A to controller B and miss changing something? Also, debugging into the source can be helpful.