Skip to content Skip to sidebar Skip to footer

How To Set Custom Folder Names For Views Stores And Models On Extjs 4 Application?

I ask this because there is an existing application that I would like to enable for using Sencha CMD so first step is to instantiate it via: Ext.Application which presents the fir

Solution 1:

Use Ext.Loader.paths.

You can actually set these against your Ext.application when initializing, for example:

Ext.application({
  name: 'MyApp',
  paths: {
      'MyCustom': 'wherever/custom',
  },
  launch: function() {
    Ext.create('MyCustom.view.List'); // Goes to wherever/custom/view/List.js
  }
});

Post a Comment for "How To Set Custom Folder Names For Views Stores And Models On Extjs 4 Application?"