How to get current showed view in controller?
there are many views in my app, i want to get the current showed view in controller, how to do?
Assuming you have a main container you could do a getMainContainer().getActiveItem(), or maybe Ext.Viewport.getActiveItem(). It depends on how your application is laid out.
Using the following works for me when using a NavigationView on the pop event,
console.log('pop from: ' + item.xtype + ' to current view item: ' + this.getMainNavView().getActiveItem().id);
So basically in the controller this should work, this.getMainNavView().getActiveItem()