-
8 Nov 2011 1:09 PM #1
Answered: How to load external files
Answered: How to load external files
I have a sencha touch 2 app where I want to load files using ext.require - I am not sure how to specify the location - I guess some kind of namespace alias?
My file is in some app/lib/ folder - the console says file: MyApp/Util.js not foundCode:Ext.Loader.setConfig({ enabled: true }); Ext.require(["MyApp.Util"]);
-
Best Answer Posted by mitchellsimoens
You need to set a path for the namespace.
http://docs.sencha.com/ext-js/4-0/#!...ader-cfg-paths
-
9 Nov 2011 6:49 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
- Answers
- 3113
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote