PDA

View Full Version : Ext.Loader.setPath is not seting he Path



piyushbhati
29 May 2014, 10:45 PM
Hi

I am using extjs workspace in which I want to use a "common" folder, which is outside the extjs Application folder.

For this i have used


Ext.Loader.setPath('ExtApp.common','../common/');

application is working fine in browser but when I build the application it gives error

49168

thnx for the help in advance

mitchellsimoens
2 Jun 2014, 5:51 AM
Cmd does not execute your code so it doesn't know about the setPath. In the .sencha/app/sencha.cfg you should see an app.classpath setting. This is a comma-delimited list of directories Cmd will inspect. You need to add the common directory to that list. ${app.dir}/common/