Im new to MVC with Sencha. Im trying my first attempt at it using the Ext.loader config. But, it's not finding any of the sources.
I have an apache directive set in the config file as Alias /ipal/ /www/apache02/ipal/ which is the correct path
I have sencha touch non-MVC apps using this url mapping and it works correctly.
The url is http://myserver/iPal/ipal.html
My Ext.Application file contains
Ext.Loader.setConfig({
enabled : true
});
Ext.Loader.setPath({
iPal: "iPal"
});
Ext.application({
name: "iPal",
appFolder: "iPal",
models: ["prodModel", "custModel"],
stores: ["prodStore", "custStore"],
controllers: ["Main"],
views : ["login", "prodList"] ,
Ive also tried using (for example) iPal.model.custModel with the same results. Im using 2.3.1
http://myserver/iPal/iPal/model/prodModel.js?_dc=1399325761894 404 (Not Found)
http://myserver/iPal/iPal/model/custModel.js?_dc=1399325761899 404 (Not Found)
I get this error for all of them. Ive tried many variations of the url and path.
Im using an IBM i5 (AS/400)
Directory . . . . : /www/apache02/iPal/model
custModel.js
prodModel.js
Does anyone see what Im doing wrong? I believe it's related to my url mapping
Thank You for your time
Aucun commentaire:
Enregistrer un commentaire