Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
viewing image outside assets/img folder
satriawae
March 2015
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
frocco
March 2015
I do this in my app.
Asset::img('artistspics/'.$row->small_pic);
Harro
March 2015
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'.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,089
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
261
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
frocco
March 2015
Harro
March 2015