in Extjs4 without cmd, i used to put this Ext.Direct line before my app.js <br>
Ext.direct.Manager.addProvider(Ext.app.REMOTING_API);<br>
<br>
Now with Sencha Cmd 5 and ExtJs5, where should i place that line ?<br>
i created a direct_api.js (with that line) and added to my app.json<br>
<br>
direct_api.js<br>
<br>
<br>
app.json<br>
<br>
<br>
and error says Ext.direct is not defined. <br>
Seems like Ext.direct will only be loaded on my app.js ???? <br>
so where i add that Ext.direct provider ?
Ext.direct.Manager.addProvider(Ext.app.REMOTING_API);<br>
<br>
Now with Sencha Cmd 5 and ExtJs5, where should i place that line ?<br>
i created a direct_api.js (with that line) and added to my app.json<br>
<br>
direct_api.js<br>
Code:
Ext.direct.Manager.addProvider(Ext.app.REMOTING_API);<br>
<br>
<br>
app.json<br>
Code:
"js": [<br>
{<br>
"path": "direct_api.js"<br>
},<br>
{<br>
"path": "app.js",<br>
"bundle": true<br>
}<br>
],<br>
<br>
<br>
and error says Ext.direct is not defined. <br>
Seems like Ext.direct will only be loaded on my app.js ???? <br>
so where i add that Ext.direct provider ?
Aucun commentaire:
Enregistrer un commentaire