I have project created by sencha cmd.
Usually It adds timestamps into loading scripts url. It's not good for debugging via browser.
I add ?cache into my URL to disble it and it crashes loading.
Why it tries to load component from widget dir.
It's
on /app/view/main/Loginform.js
Usually It adds timestamps into loading scripts url. It's not good for debugging via browser.
I add ?cache into my URL to disble it and it crashes loading.
I've got error:
Code:
[Ext.Loader] Synchronously loading 'widget.loginForm'; consider adding Ext.require('widget.loginForm') above Ext.onReady Util.js:692
widget/loginForm.js bootstrap.js:557
[/COLOR]
Why it tries to load component from widget dir.
It's
Code:
Ext.define('App.view.main.Loginform', { extend: 'Ext.Window',
alias: 'widget.loginform',
border : false,
requires: ['App.view.main.LoginformController'],
controller: 'loginform',
cls: 'pnl-padding',
items: [{
xtype: 'panel',
region: 'west',
html: '<ul><li>Test area</li></ul>',
width: 250,
split: true,
tbar: [{
text: 'Button',
handler: 'doLogin'
}]
}],
initComponent : function () {
console.log('init logintform');
var component = this;
this.callParent(arguments);
component.show();
}
});
on /app/view/main/Loginform.js
Aucun commentaire:
Enregistrer un commentaire