PDA

View Full Version : Running Extjs application from sub url.



digitaldisorder
11 Apr 2012, 6:35 AM
Hello,
I was writing our application to be served in the root directory of our server. So all the proxies were getting
data from urls like this: /news.json, /messages.json etc.... Now I was to install the application in the
sub directory and I would like all the requests to have a prefix addes in front of every route. So
news.json would become: /myapplication/news.json
How can I achieve that? Is there any flag in Extjs configuration? Or when I configure proxy I should add the
prefix manually?

regards,
Jakub

khmurach
11 Apr 2012, 7:00 AM
Try to override buildUrl (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.proxy.Server-method-buildUrl) method