jairok
19 Apr 2011, 1:04 PM
Hi everbody,
I'm a begginner with sencha touch and i'm trying to develop a MVC app.
My first question is about all the examples I've downloaded.
Sometime, people use this kind of code:
Ext.apply(app.views, {myView: new app.views.MyView()});and others use :
app.views.MyViews = Ext.extend(....
Ext.reg('MyView', app.views.MyView);
Same for the controllers. Is it better to use the full path (app.controllers.myControllers) or the Ext.dispatch method.
Can someone please explain me which of this solution is the best and why....
And second, is there any documentation about sencha's best pratice to develop with. ?
Thanks a lot !!
Jairo
I'm a begginner with sencha touch and i'm trying to develop a MVC app.
My first question is about all the examples I've downloaded.
Sometime, people use this kind of code:
Ext.apply(app.views, {myView: new app.views.MyView()});and others use :
app.views.MyViews = Ext.extend(....
Ext.reg('MyView', app.views.MyView);
Same for the controllers. Is it better to use the full path (app.controllers.myControllers) or the Ext.dispatch method.
Can someone please explain me which of this solution is the best and why....
And second, is there any documentation about sencha's best pratice to develop with. ?
Thanks a lot !!
Jairo