Basic image/file display issues - 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: Basic image/file display issues (/showthread.php?tid=27725) |
Basic image/file display issues - El Forum - 02-18-2010 [eluser]elaniobro[/eluser] I am a complete n00b to both CI and MVC framework. I am trying to get my images/css/etc.. to display properly in the browser. However, the only thing that seems to work is actual text. Do I need to set routes or something for the 'img' folder as well as the 'com' folder which has 'css','js','etc..' in it? Here is the controller that I am using: Code: <?php Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Thanks for any insight. Basic image/file display issues - El Forum - 02-18-2010 [eluser]elaniobro[/eluser] So it appears it was a scope issue an using: Code: <?= base_url();?> Solved the trick, however how do I use base_url(); in a css file? |