Threaded View

  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.

Thread Participants: 2

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