• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
load image in view


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

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


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.

Thanks Maglok,

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.