![]() |
Views doesn't load CSS and JAVASCRIPTS - 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: Views doesn't load CSS and JAVASCRIPTS (/showthread.php?tid=19747) |
Views doesn't load CSS and JAVASCRIPTS - El Forum - 06-17-2009 [eluser]Sebastián Faúndez[/eluser] Hi all, Hi have the following problem, I have a view file called portfolio_view.php but when i load this file doesn't include the CSS file for styles and JS files that i need to use to call JQuery framework (for instance), When i see the source code of the page on Firefox or IE I can see the include strings that are: Code: <link type="text/css" rel="stylesheet" href="css/layout.css" /> but when I try to see the source code of each included file(layout.css, jquery-1.3.2.js, jquery.easing.1.3.js, etc...) with Firebug I cannot see their content and i can realise that there is a page with the 404 error "404 Page Not Found" for each file is the same, so my page doesn't have CSS styles or JQuery that i need to use it, Anybody have any idea about the fix for this ?, Thanks for advance Views doesn't load CSS and JAVASCRIPTS - El Forum - 06-17-2009 [eluser]Dam1an[/eluser] You need to give it an absolute path, I use Code: <link rel="stylesheet" href="<?=base_url().'css/reset.css'?>" media="screen" type="text/css" /> You'll need the URL helper loaded for the base_url function Views doesn't load CSS and JAVASCRIPTS - El Forum - 06-18-2009 [eluser]Sebastián Faúndez[/eluser] Thanks Dam1an, Now is working good . I know I'm new in this :-) Kind regards |