Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How to use different file types
  • Hi all, I have a question regarding the assets. I wanna insert in my site a PDF file, so I created a new folder and putted the file in:
    How can I get the file path in my application? I tried with:
    $path = Asset::get_file('myfile.pdf', 'pdf');
    without success. Can you help me?
  • Asset currently doesn't have support for other subfolders then img, js and css. But this sounds like a useful addition, could you create a ticket for this at, with a use-case?
  • Thanks Harro, I've opened an issue. Hope you could add this feature as soon as possible, I think it could be very useful! :)

Howdy, Stranger!

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

In this Discussion