![]() |
[SOLVED] Link to CSS not working - 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: [SOLVED] Link to CSS not working (/showthread.php?tid=30950) |
[SOLVED] Link to CSS not working - El Forum - 06-01-2010 [eluser]bondjp[/eluser] I'm having a strange problem in my header.php. Header.php Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> So i'm getting a blank homepage using the above code, but if i remove this line: Code: <link type="text/css" rel="stylesheet" href="<?php echo base_url();?>css/default.css" /> My homepage appears but i don't have the css... I've checked the base url and it's ok and the file exits in that folder. Can anyone point me to what is going on? Thanks. [SOLVED] Link to CSS not working - El Forum - 06-01-2010 [eluser]bondjp[/eluser] Ok did a check and the problem is with base_url(), removing that and putting htt://localhost/ci/css/default.css works. I've checked config.php and the base_url is correctly set. Any ideas where to look further? [SOLVED] Link to CSS not working - El Forum - 06-01-2010 [eluser]bondjp[/eluser] Ok, found the problem, forgot to insert the url helper on autoload.php. |