Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How do I use Asset::img in a different directory?
  • Hello,

    I created a directory called files to upload images to.
    I want to use Asset::img to display the image.

    Thnaks
  • HarroHarro
    Accepted Answer
    That depends on your config.

    By default asset has a root path, and inside that path an 'img' folder in which you put your images.

    If you have images elsewhere, you can add an additional path using the add_path() method.

Howdy, Stranger!

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

In this Discussion