1. #1
    Sencha User
    Join Date
    Sep 2008
    Posts
    16
    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
    9,182
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      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

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi