Results 1 to 5 of 5

Thread: Can't get correct image path in image component

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    72
    Vote Rating
    2
      0  

    Default 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 User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      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

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    72
    Vote Rating
    2
      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
      0  

    Default 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 User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •