PDA

View Full Version : ExtJS 4 MVC Getting References



hermann.s
6 Nov 2013, 6:10 AM
The tutorial states this :


views:['StationsList']// creates getter named 'getStationsListView' -> returns reference to StationsList class
models:['Station']// creates getter named 'getStationModel' -> returns reference to Station model class
controllers:['Song']// creates getter named 'getSongController' -> returns the Song controller instance
stores:['Stations']// creates getter named 'getStationsStore' -> returns the Stations store instanceHowever,

my stores/views/etc look like this :

'switchUser.switchUserStore' - store
'switchUser.GridPanel' - view

How can I get a reference to something with a dot in the name? Would I have to change the name?

ettavolt
6 Nov 2013, 11:06 AM
Basically you inspect your controller object at runtime. I guess you will see something like "getSwitchUserSwitchUserStoreStore".