Css file inclusion problem - 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: Css file inclusion problem (/showthread.php?tid=14842) |
Css file inclusion problem - El Forum - 01-17-2009 [eluser]Bluemagix[/eluser] I have one controller called blog.php as follows Code: <?php http://localhost/blog is giving me the output what i want but it seems that css file is not added for http://localhost/blog/index or http://localhost/blog/home why it is so?? n what is the diffrance between http://localhost/blog/ and http://localhost/blog/index Css file inclusion problem - El Forum - 01-17-2009 [eluser]JoostV[/eluser] You probably use a relative path to include your css file. You need to use the full path or set a base href tag. You'll find a solution here: http://ellislab.com/forums/viewthread/98267/#496496 There is no difference between yourdomain.com/blog and yourdomain.com/blog/index. Both URLs call the index function in your blog controller. Css file inclusion problem - El Forum - 01-17-2009 [eluser]John_Betong[/eluser] Try the following code and spot the difference in your two views: Code: <html> |