Welcome Guest, Not a member yet? Register   Sign In
load image in view
#1

[eluser]ravi_kachh[/eluser]
Hi,

can anyone tell me that how can i load image in view.
as i have the image folder path like
system/application/abc/image/

as the path is taking right but it does not showing the image.


Thanks,
Ravi
#2

[eluser]Maglok[/eluser]
You cannot put images in your CI installation directory. You need to make a dir at the root and reference that like so:

CI = system/application/something
images = images/yourimage.gif

All 'assets' like images, CSS, etc, that are not part of CI should be kept outside where you can reference them.
#3

[eluser]ravi_kachh[/eluser]
Thanks Maglok,

I will put the image folder to the root directry.
And try to access it from there.

Thanks
Ravi




Theme © iAndrew 2016 - Forum software by © MyBB