Welcome Guest, Not a member yet? Register   Sign In
Views doesn't load CSS and JAVASCRIPTS

[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:

<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

You need to give it an absolute path, I use
<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

[eluser]Sebastián Faúndez[/eluser]
Thanks Dam1an,

Now is working good .
I know I'm new in this :-)
Kind regards

Theme © iAndrew 2016 - Forum software by © MyBB