PDA

View Full Version : Script Injection Default Path/Direcdtory



kmiklas
24 Oct 2013, 9:43 AM
Hey All,

Is there an easy way in ExtJS 4 to set the default source directory path for script injection?

Something like the "baseURL" key in the require.config file from requirejs; e.g.:


require.config({ baseUrl: "/another/path",http://requirejs.org/docs/api.html#config

tyvm
Keith :^)

ettavolt
25 Oct 2013, 2:30 AM
This (http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.Loader-cfg-paths) may suit your needs.
Note: you are loading classes with Ext, not 'scripts'.