Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
viewing image outside assets/img folder
  • if I have this file structure

    website
    -fuel
    -public
    --assets
    ---img
    ----picture1.jpg
    -pictures
    --picture2.jpg

    I can access picture1.jpg via Asset::img('picture1.jpg')
    but how can access picture2.jpg under pictures folder?

    tQ for the answer
  • I do this in my app.
     Asset::img('artistspics/'.$row->small_pic);
  • img() requires files to be in the asset/img folder.

    You can use the add_path() method to add additional paths, in this case to the type 'img'.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion