1. #1
    Sencha User
    Join Date
    Feb 2009
    Posts
    75
    Vote Rating
    -1
    bareflix is an unknown quantity at this point

      0  

    Default Unanswered: How should ext.direct work with the new sencha build tool?

    I had sencha create set up and working without ext.direct using this command:

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

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

  2. #2
    Sencha User
    Join Date
    Oct 2011
    Posts
    1
    Vote Rating
    0
    rossdeane is on a distinguished road

      0  

    Default

    Did you ever find a solution to this?
    I'm encountering the same problem.

  3. #3
    Sencha User chramer's Avatar
    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    218
    Vote Rating
    11
    Answers
    42
    chramer will become famous soon enough

      0  

    Lightbulb

    for me it worked like this :


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

  4. #4
    Sencha User
    Join Date
    Feb 2009
    Posts
    75
    Vote Rating
    -1
    bareflix is an unknown quantity at this point

      0  

    Default

    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.

  5. #5
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Cluj, Romania
    Posts
    657
    Vote Rating
    39
    Answers
    21
    vadimv has a spectacular aura about vadimv has a spectacular aura about

      0  

    Default

    Quote Originally Posted by bareflix View Post
    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.
    Last edited by vadimv; 1 Nov 2011 at 7:47 AM. Reason: corrections

  6. #6
    Sencha User
    Join Date
    Feb 2009
    Posts
    1
    Vote Rating
    0
    ottodriver is on a distinguished road

      0  

    Default

    +1 if anyone have a solution to this