[eluser]puddles[/eluser]
I've done a lot of reading of posts in this forum on how to locate your css file, and have tried each method. For the life of me, I can't seem to get it working though!
Here is the location of my css file which I would like to call in a header view:
xampp
-> htdocs
-> codeigniter
-> system
-> assets
-> css
-> screen.css
Here is my base url from my config.php:
$config['base_url'] = "http://localhost/codeigniter/";
Here is my controller code
Code:
<?php
class Welcome extends Controller {
function Welcome()
{
parent::Controller();
}
function index()
{
$this->load->view('header');
$this->load->view('welcome_message');
$this->load->view('footer');
}
}
Here is my header view:
Code:
<html>
<head>
<title>Welcome to Hockeypool Headquarters</title>
<style type="text/css">
<?php echo link_tag('assets/css/screen.css'); ?>
</style>
</head>
No matter what I seem to do, I'm not able to get the css to apply to the welcome_message.php page.
When I look at the rendered page source, I see the following in the head section:
Code:
<style type="text/css">
<link href="http://localhost/codeigniter/assets/css/screen.css" rel="stylesheet" type="text/css" />
</style>
Can anyone point out where I've gone wrong?