load image in view - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: load image in view (/showthread.php?tid=28337) |
load image in view - El Forum - 03-08-2010 [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 load image in view - El Forum - 03-08-2010 [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. load image in view - El Forum - 03-08-2010 [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 |