mardi 24 juin 2014

Sencha Cmd5 and Ext.Direct

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>


Code:



Ext.direct.Manager.addProvider(Ext.app.REMOTING_API);<br>

<br>

<br>

app.json<br>


Code:



"js": [<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"path": "direct_api.js"<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;},<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"path": "app.js",<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"bundle": true<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}<br>
&nbsp;&nbsp; &nbsp;],<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