-
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'
});
*************************************
-
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.
-
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.
-
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