24 Apr 2012 11:49 PM #1
Passing URL parameters when specifying app-entry
Good day all,
When specifying URL parameters the sencha command is exiting because it thinks that its a bash &
the command to create jsb i issued is:
sencha create jsb -v -p app.jsb3 -a http://localhost/index.php?compile=1&p=store
i have tried wrapping the url in "" and am still unsuccessful. i am running the command in a bash terminal running on OS X.
Would appreciate some assistance.
25 Apr 2012 1:14 AM #2
Why, for compilation, do you need those parameters ???
Have you try it w/o those ones ?
sencha create jsb -v -p app.jsb3 -a http://localhost/index.php
An other thing :
I'am using 3 "html" files in my process
1) index-dev.html, which use the extjs-all-debug.js and the app.js
The one I use for dev
2) index.build.html, which is the one I use when "compiling" (with SDK Tool), it uses extjs-debug.js and app.js
The one I (only) use to "compile"
(see that post)
3) index.html, which is my "final" (production) html file, it uses extjs.js and app-all.js
The one used in "real world"
So maybe, if index.php is not needed at first (i.e in dev or building phase) try to not use it, and use an .html file instead
25 Apr 2012 3:28 AM #3
I need those parameters to ensure that the correct page is loaded. the "p" parameter loads the correct php files needed for the application, the "compile" parameter ensures that for compilation all authentication and authorization tokens are created. to just bypass the authentication and authorization will cause a lot of exceptions.