1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    72
    Vote Rating
    2
    sephyroth69 is on a distinguished road

      0  

    Default Can't get correct image path in image component

    Can't get correct image path in image component


    Hi guys,

    I've been testing Sencha Architect for a few days and I can't find the correct path for it to be displayed properly.
    Wouldn't it be easier if we could have a file explorer or something like that ?

    thanks

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,308
    Vote Rating
    125
    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


    septhyroth69 -

    All relative urls within Architect are relative to your working directory or where you deploy your application. This can be set in the settings of the Project under urlPrefix.

    You can set relative paths or absolute paths via an http url.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    72
    Vote Rating
    2
    sephyroth69 is on a distinguished road

      0  

    Default


    Ok then, I'll have a look at that, but a helper like autocompletion or something like that would be much appreciated.

    Thanks for the answer !

  4. #4
    Sencha User
    Join Date
    Nov 2012
    Posts
    3
    Vote Rating
    0
    capricx is on a distinguished road

      0  

    Default image path

    image path


    i have same like problem.please tell me how to access icon image "resources/icons/Icon.png" from my Main view. i am getting problem.please describe relative and absolute path.

  5. #5
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,308
    Vote Rating
    125
    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


    Setup your url prefix so that it correlates to where your project lives in http terms.

    Ie if my webroot is C:\Inetpub\wwwroot or ~/Sites/ this might correlate to http://localhost/.

    If my project is stored in C:\Inetpub\wwwroot\myproject or ~/Sites/myproject/ then it would correlate to http://localhost/myproject/.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 2