View Full Version : [CLOSED][PR5] Ext.Loader is not loading the Core files

28 Mar 2011, 4:48 AM
I don't know if I'm doing something wrong, or this is really a bug.

There are a lack of examples about these new way to load ExtJS files, so I'm trying to guessing how to do.

In my HTML I have this:

<script type="text/javascript" src="_assets/ext-foundation.js"></script>
enabled: true,
paths: {
'Ext': './_assets/src/.',
'App': './modules/.'
<script type="text/javascript" src="modules/application.js"></script>

In my application.js I have this:

Ext.define('App.MyViewport', {
extend: 'Ext.container.Viewport',
requires: ['Ext.Ajax', 'Ext.panel.Panel', 'Ext.tab.TabPanel']

Ext.onReady(function() {
new App.MyViewport();

What happens:

'Ext.container.Viewport', 'Ext.Ajax', 'Ext.panel.Panel', 'Ext.tab.TabPanel' are loading correctly, but the loader is trying to load: EventManager.js, Element.js, Event.js, .Format.js and some other Core files from a wrong path. These files are inside the '_assets/src/core/src' directory, and the loader is looking for then on '_assets/src'.

Should I load the ext-core.js first on my html as we used to do?
Should I move the core files to my ExtJS path?
There's another Loader config to specified the core path?

What should be the right procedure to follow?

Jacky Nguyen
28 Mar 2011, 9:08 AM
There's a development bootstrap.js that we didn't include in the release yet. You'll just need that one file for everything to be loaded automatically. Guides are being prepared and will be available before Final.

28 Mar 2011, 9:10 AM
Ok. Thanks for clarify. I'm using the ext-core.js during the production time for now.