1. #1
    Sencha User ajohan75's Avatar
    Join Date
    Aug 2008
    Location
    Malaysia
    Posts
    18
    Vote Rating
    0
    ajohan75 is on a distinguished road

      0  

    Default Passing URL parameters when specifying app-entry

    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:

    Code:
    sencha create jsb -v -p app.jsb3 -a http://localhost/index.php?compile=1&p=store
    the presence of the & in -a argument is causing bash to send the process to the background.

    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.

    Cheers!

    AJ

  2. #2
    Sencha Premium Member
    Join Date
    Jan 2012
    Posts
    131
    Vote Rating
    -2
    YomeKitsuma has a little shameless behaviour in the past

      0  

    Default


    Why, for compilation, do you need those parameters ???

    Have you try it w/o those ones ?

    Code:
    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

    <script type="text/javascript" src="../extjs/4.0.7/ext-all-debug.js"></script>
    <script type="text/javascript" src="app.js"></script>



    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"

    <script type="text/javascript" src="../extjs/4.0.7/ext-debug.js"></script>
    <script type="text/javascript" src="app.js"></script>

    (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"

    <script type="text/javascript" src="../extjs/4.0.7/ext.js"></script>
    <script type="text/javascript" src="app-all.js"></script>


    ----------

    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

  3. #3
    Sencha User ajohan75's Avatar
    Join Date
    Aug 2008
    Location
    Malaysia
    Posts
    18
    Vote Rating
    0
    ajohan75 is on a distinguished road

      0  

    Default


    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.

    having 3 seperate files as you have suggested is not the optimal solution as the php portion of the file contains additional processing that is not done in the front end. these parameters allow the system to load the correct php files and also the javascript files without the need for manual editing on my side.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar