![]() |
Backslash Bug - 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: Backslash Bug (/showthread.php?tid=22622) |
Backslash Bug - El Forum - 09-15-2009 [eluser]Unknown[/eluser] I dunno if this is a bug but, im just starting with Codeigniter and im having trouble with directories. I made a header.php page with images with the link "../images/balhblah.png" the images shows fine with http://localhost/ci/index.php/login but the images doesnt show anymore when i add a slash at the end like http://localhost/ci/index.php/login/ if u go http://codeigniter.com/index.php, everything is fine but if u go http://codeigniter.com/index.php/ some images are missing how can i fix my problem? Backslash Bug - El Forum - 09-15-2009 [eluser]bitist[/eluser] Instead of: Code: <img src="../images/balhblah.png"> use: Code: <img src="{http_path_to_image}/images/balhblah.png"> Backslash Bug - El Forum - 09-16-2009 [eluser]davidbehler[/eluser] Check the Guide ![]() HTML helper -> img() |