[eluser]vincej[/eluser]
I'm quite flumixed, having worked with CI for the last year, now something as basic as creating a new project with a new base_url() I just can not get to work. I'm trying to call a css file. If I put the full url into the <link href > it works, but if I put base_url() in, it fails. I can not for the life of me see what I am doing wrong. I'm using a whole fresh new install of CI.
Any ideas ?
my config file is set:
Code:
$config['base_url']= 'http://localhost/myproject/';
my test page:
Code:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>test</title>
<link href="<?php echo base_url();?>css/default.css" type="text/css" rel="stylesheet"
</head>
<body>
<p class='test' >hello from line 15 no php </p>
<?php
echo "<div class='test'> Hello World</div>";
?>
</body>
</html>
controller:
Code:
public function index()
{
$this->load->view('test');
}