PDA

View Full Version : Direct Resource with relative url



gbjk
20 Sep 2012, 11:00 AM
Sencha Architect 2.1.0 Build 613
ExtJS 4.1.2

I want to add a Ext Direct Resource with a relative path.

Our web app will use /web_service/.../ to access a direct api, and during development we've setup
our local machines to proxy /web_service/ to our devel web services.

The issue is that not only does architect fail to load it (using project url prefix), but if it fails to load it,
it won't write the Direct statements to app.html to addProvider.

I'd been sidestepping this issue by declaring the Direct src url as a JS resource, and then manually
calling Ext.direct.addProvider (Ext.app.REMOTING_URL)
That was working fine, until I wanted to connect a Direct store to it.

Can it be made so that Architect will take a relative path for a Direct source url, and append it to the project URL prefix, please?

Thanks

Gareth