icon
Avatar
treboR
Posts: 2
i tried to install Bancha with CakePHP 2.5.3 and ExtJS 4.2.1
but when i add this lines:
Ext.Loader.setConfig({enabled: true}); // enable the Ext.Loader
Ext.Loader.setPath('Bancha','app/Plugin/Bancha/webroot/js'); // path to Bancha files
Ext.require('Bancha.Initializer'); // load

i get this errors:
"NetworkError: 404 Not Found - http://10.12.7.16/correo/app/Plugin/Bancha/webroot/js/Initializer.js?_dc=1411046498198"
Error: [Ext.Loader] Failed loading 'app/Plugin/Bancha/webroot/js/Initializer.js', please verify that the file exists

i don't know what else to do, i think that CakePHP don't let me access to /app/Plugin/Bancha/webroot/js/Initializer.js this way.

Need some help.
2014-09-18 12:29
Avatar
treboR
Posts: 2
well, i found the trouble. :w00t:
seems that i just need to made the stupid in the FORUM. lol. :blink:
taking out the slash like this:
Ext.Loader.setPath('Bancha','Bancha/js');
and got everything ok.
2014-09-18 12:37
Avatar
jay7
Posts: 1
Glad, you found the solution! :)
2014-09-18 18:42
Avatar
josevossjunior
Posts: 5
icontreboR:
well, i found the trouble. :w00t:
seems that i just need to made the stupid in the FORUM. lol. :blink:
taking out the slash like this:
Ext.Loader.setPath('Bancha','Bancha/js');
and got everything ok.


I'm having the same issue, but I 'm using the Sencha cmd watch, Could you help me?
I trying:
Bancha/js
/Bancha/js
/../Bancha/js
../Bancha/js
../../Bancha/js

Nothing, please give me a light
2014-10-13 17:27
rolandschuetz
rolandschuetz
Moderator
Posts: 8
Hello,

when you are using Sencha CMD the Ext.Loader.setPath('Bancha', ..); will be ignored. Please update to Bancha 2.4 and follow this guide to set up Sencha Cmd:
http://bancha.io/documentation-pro-sencha-cmd.html

Let me know if that solved the issue for you.

Best regards,
Roland
2014-10-21 01:25
icon Please login to reply or post!