Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><em>ext-dev.js</em> only includes a rudimentary set of Ext core classes and depends on dynamic loading via <code>Ext.Loader</code> to fetch additional classes. Each class is a Javascript file located in cascaded directories matching its package hierarchy.</p> <p>By default <code>Ext.Loader</code> will look for additional Ext classes in the <code>src</code> directory relative to the directory of your html file. Hence the <code>404</code> for <em>src/container/Viewport.js</em> and <em>src/app/Application.js</em>. </p> <p>Point <code>Ext.Loader</code> to the location of your Ext <em>source</em> files, e.g.:</p> <pre><code>Ext.Loader.setPath('Ext', '../ext-4.0.2a/src'); </code></pre> <p>Your custom classes will be picked up from the <code>app</code> directory by default, but this can be changed to your likings:</p> <pre><code>Ext.Loader.setPath('EvMgr', 'evmgr'); </code></pre> <p>Btw, when using <em>ext-dev.js</em> there should be no need to enable <code>Ext.Loader</code> or <em>require</em> a standard Ext class like <code>Ext.container.Viewport</code> as you do in the first two lines of your code.</p> <p>When using <em>ext-all-debug.js</em> you'll have to explictely enable <code>Ext.Loader</code> to allow dymanic loading of your custom class files. There is no need to set the path for Ext classes though - they are all included in <em>ext-all-debug.js</em> anyway.</p> <p>Note: another common pitfall is that with <code>autoCreateViewport: true</code> Ext will try to load the class file for <code>EvMgr.view.Viewport</code>. This should be a class extending <code>Ext.container.Viewport</code>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload