Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Asset a new path
  • I want the Assets can support a new path. for example swf path. What should I do?
  • If this is a folder like 'swf' at the same level as 'img' or 'js', you can do

    Asset::instance()->add_type('swf');

    As there is no swf() method, you'll have to use the get_file() method to fetch it:

    $upload = Asset::get_file('upload.swf', 'swf'); // returns the full URL to upload.swf

Howdy, Stranger!

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

In this Discussion