CodeIgniter Forums

Full Version: Problem with css style in view
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
Hello,

I have one little problem, what I can't resolve... I found few solutions, but on my CI not works.

I try to include css style like that (url helper is enabled):
Code:
<link href="'.base_url().'system/application/views/template/style.css" rel="stylesheet" type="text/css" />

But style is not loaded Sad I try go to http://localhost/system/application/views/template/style.css but I see:

Code:
404 Page Not Found
The page you requested was not found.

Please, help

El Forum

[eluser]Unknown[/eluser]
Problem is resolved.

I put folder images (css,pictures) where is first index.php of ci and write:

Code:
<link href="'.base_url().'images/style.css" rel="stylesheet" type="text/css" />

And it's working fine.