-
22 Jan 2013 2:46 PM #1
Help setting up non-relative url for project URL prefix
Help setting up non-relative url for project URL prefix
I want to setup the project URL prefix to http://localhost/app/?mod=something&action=, so that I can in turn set my model's proxy url to GetMyData. I expect the URL to be executed to look like http://localhost/app/?mod=something&action=GetMyData. Note I cannot use SES slash-URLs. I cannot rely on .htaccess files or other forms of redirection.
However, I get an error saying the data cannot be loaded. I click on the supplied URL, and what Architect is trying to load is http://localhost/app/?mod=something&action=/GetMyData. Why is architect adding a leading slash to the proxy URL when I already have a project URL prefix already set?
-
23 Jan 2013 12:52 PM #2
Your urlPrefix should not include any url arguments.
Your urlPrefix is http://localhost/app/.
When loading your store you can either programatically load it like so:
Or if its always going to be the same thing you can set it as part of your base/extra Params.Code:store.load({ params: { mod: 'something', action: 'GetMyData' } });
Code:{mod: 'something', action: 'GetMyData'}Aaron Conran
@aconran
Sencha Architect Development Team


Reply With Quote