PDA

View Full Version : Loader path - base path? Zend problem



Webtel
27 Oct 2011, 4:52 AM
app.appFolder : '/app'

but other isues are comming :)

kef4e
27 Oct 2011, 6:10 AM
Hi,

I am not sure if ExtJS has 'baseURL' but in plain JavaScript you can do this :


baseURL = window.location.protocol + '\/\/' + window.location.host + '\/';

This will give you baseURL in your DOM and you can use it whenever you need to specify url:


url : baseURL + '/test/url/param1/1/';

Hope this helps ;)

lucasguaru
28 Oct 2011, 3:45 AM
I have the in this way:


Ext.application({
name : 'G3',
appFolder : 'js',
...

The js folder is right under my WebContent folder, which is the first folder for the internet.
My link for the js on the browser will be:
http://localhost/G3/js/App.js

I noticed you set the app folder after. I do it right when I create the application. I don't know if that's a problem but you can try different.
Regards