Hybrid View
-
12 Jun 2012 5:42 AM #1
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
-
Best Answer Posted by jason.cline
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.
-
13 Jun 2012 9:43 AM #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.
-
25 Jul 2012 7:51 PM #3
app.html within a Sencha Architect 2 project starts off as follows:
So, in order to actually add these as script tags through Architect you add a js resource and set the URL appropriately.Code:<!DOCTYPE html> <!-- Auto Generated with Sencha Architect --> <!-- Modifications to this file will be overwritten. -->
-
26 Jul 2012 7:09 AM #4
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


Reply With Quote