frankbolviken
23 Jan 2011, 11:56 PM
Trying to develop a little app in Sencha Touch with MVC. CUrrently strugling with the "login" bit of it all.
Currently myApp.js looks like this:
Ext.regApplication({
name: 'app',
defaultTarget: 'viewport',
tabletStartupScreen: '../resources/images/tablet_startup.png',
ui: 'dark',
launch: function() {
// this.login = new app.views.Login({
// application: this
// });
this.viewport = new app.views.Viewport({
application: this
});
}
})
What i'm looking for is the "login" view to be visible if there exist no sessioninfo. How can I achieve this?
And whats the best way to store session information in Sencha Touch?
Sincerly,
Frank B
Currently myApp.js looks like this:
Ext.regApplication({
name: 'app',
defaultTarget: 'viewport',
tabletStartupScreen: '../resources/images/tablet_startup.png',
ui: 'dark',
launch: function() {
// this.login = new app.views.Login({
// application: this
// });
this.viewport = new app.views.Viewport({
application: this
});
}
})
What i'm looking for is the "login" view to be visible if there exist no sessioninfo. How can I achieve this?
And whats the best way to store session information in Sencha Touch?
Sincerly,
Frank B