PDA

View Full Version : [SDKTOOLS-7] You cannot have Ext.Loader and Ext.require in different script blocks



jmefford
17 Jun 2011, 9:39 AM
I am using the http:// path to my app since apache is routing my static files (i'm not referencing actual directory structres), but i keep getting loader errors on my custom stores/models/etc.. This problem does not occur in the browser, since I set the loading paths, but it seems that the SDK cannot use those loading paths.

Any thoughts?

jmefford
17 Jun 2011, 10:01 AM
UPDATE:

So i had my loader require paths, and my actual Ext.require in two separate script blocks and moving them together into one seemed to fix this issue. Maybe it should be logged as a bug, i'm not sure.

Ex. --Broken


<script type=....>
Ext.Loader.setConfig({...});
</script>

<script type=.....>
Ext.require([...]);
</script>


Ex. --Fixed


<script type=....>
Ext.Loader.setConfig({...});
Ext.require([...]);
</script>