CodeIgniter Forums
Not able to display images - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Not able to display images (/showthread.php?tid=23309)

Pages: 1 2


Not able to display images - El Forum - 10-15-2009

[eluser]renownedmedia[/eluser]
If you ever have problems like this again, right click on your broken image and click view image. This will give you the URL your browser is trying to find the image at. That should be the first step with this sort of problem solving.

Ideally, install firebug and you see things like this lit up in red!


Not able to display images - El Forum - 11-01-2009

[eluser]doubleplusgood[/eluser]
XAMPP has tripped me up a few times with paths. I develop at home on my Mac and things like using <?=site_url('')?> work perfectly in links for images/styles and so on, but transfer to a Windows computer and XAMPP (when I'm doing my day job) and the same code no longer works. Even when you view source, it includes the <?=site_url('')?> in the links. Very odd - as everything else php related works fine; controllers, views etc.