1. #1
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    16
    Vote Rating
    0
    mwindley is on a distinguished road

      0  

    Default Answered: Sencha.io with Architect

    Answered: Sencha.io with Architect


    I would like to use sencha.io with sencha architect.
    Any suggestions for documention or sample.
    Currently trying to achive the requirement for "set path".
    I do not know how to add it to the application node in architect as per documentation suggestion.
    Maurice
    *************************
    You will need to tell the dynamic loader where to find the Ext.io classes when they are required. Add this to the top of your app.js file.


    Ext.Loader.setPath({
    'Ext.io': 'lib/io/src/io',
    'Ext.cf': 'lib/io/src/cf'
    });
    *************************************
    Regards Maurice

  2. We haven't yet documented how to integrate Sencha Architect and Sencha.io but will will include that in a future release.

    Architect produces project that don't use the loader so you don't need to call setPath. You can also ignore the other stetting and commands related to the build.

    However you will need to manually include the sencha.io and socket.io as script tags in the head of your app.html page.

    <script type="text/javascript" src="lib/socket.io.js"></script>
    <script type="text/javascript" src="sencha-io.js"></script>

    just change the path to match where you put the io download.

  3. #2
    Sencha - IO Dev Team
    Join Date
    Apr 2011
    Posts
    85
    Answers
    27
    Vote Rating
    5
    jason.cline is on a distinguished road

      1  

    Default


    We haven't yet documented how to integrate Sencha Architect and Sencha.io but will will include that in a future release.

    Architect produces project that don't use the loader so you don't need to call setPath. You can also ignore the other stetting and commands related to the build.

    However you will need to manually include the sencha.io and socket.io as script tags in the head of your app.html page.

    <script type="text/javascript" src="lib/socket.io.js"></script>
    <script type="text/javascript" src="sencha-io.js"></script>

    just change the path to match where you put the io download.

  4. #3
    Sencha User
    Join Date
    May 2009
    Posts
    14
    Vote Rating
    0
    marcotuts is on a distinguished road

      0  

    Default


    app.html within a Sencha Architect 2 project starts off as follows:
    Code:
    <!DOCTYPE html>
    
    
    <!-- Auto Generated with Sencha Architect -->
    <!-- Modifications to this file will be overwritten. -->
    So, in order to actually add these as script tags through Architect you add a js resource and set the URL appropriately.

  5. #4
    Sencha - IO Dev Team
    Join Date
    Apr 2011
    Posts
    85
    Answers
    27
    Vote Rating
    5
    jason.cline is on a distinguished road

      0  

    Default


    Correct.

    Also if you want to server your app to senchafy.com you will need to rename app.html that is generated by Architect to index.html

Thread Participants: 2