PDA

View Full Version : How should ext.direct work with the new sencha build tool?



bareflix
11 Aug 2011, 12:51 PM
I had sencha create set up and working without ext.direct using this command:


sencha create jsb -a index_devel.html -p app.jsb3

Then I added my direct api in the index_devel.html file as I had it in extjs 3.x:


<script type="text/javascript" src="direct/api"></script>

now sencha create says my API is undefined and hangs.

the direct/api file is generated on the fly by my php backend. Do I need to change that so it is a static file that sencha create can find?

--
Chris Bare

rossdeane
1 Nov 2011, 2:10 AM
Did you ever find a solution to this?
I'm encountering the same problem.

chramer
1 Nov 2011, 6:43 AM
for me it worked like this :



sencha create jsb -a htp://www.mysite.com/index_devel.html -p app.jsb3

bareflix
1 Nov 2011, 7:33 AM
Not really. Since my backend api doesn't change often, I just get a copy from the server and store it in a local file which I reference vi Ext.require in my app.js.
At least that way I can do a build without having to have the code running on a server somewhere, but it's still less than ideal.

vadimv
1 Nov 2011, 7:47 AM
Not really. Since my backend api doesn't change often, I just get a copy from the server and store it in a local file which I reference vi Ext.require in my app.js.
At least that way I can do a build without having to have the code running on a server somewhere, but it's still less than ideal.
the same, I was storing a copy of the api in the Ext.app.REMOTING_API in order to make the create, then at build, remove or comment that line.

ottodriver
1 Nov 2011, 1:58 PM
+1 if anyone have a solution to this