1. #1
    Sencha User
    Join Date
    Sep 2008
    Posts
    14
    Vote Rating
    0
    dajester2008 is on a distinguished road

      0  

    Default 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?

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,185
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      0  

    Default


    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:
    Code:
    store.load({
       params: {
          mod: 'something',
          action: 'GetMyData'
       }
    });
    Or if its always going to be the same thing you can set it as part of your base/extra Params.

    Code:
    {mod: 'something', action: 'GetMyData'}
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Tags for this Thread