[eluser]Ascenti0n[/eluser]
HI all
I have returned to CI after spending many months with Drupal and need to re-acquaint myself with CI fast.
I have taken the applications folder outside the system folder, thus:
Quote:/
application
config
controllers
etc
images
js
styles
mic.css
system
index.php
.htaccess
I have written a simple controller that merely loads a view -
this is my view:
Code:
<html>
<head>
<title></title>
<link rel="stylesheet" href="styles/mic.css" type='text/css' media='screen' charset='utf-8' />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<h1>here is an image below</h1>
<img src="images/sky.jpg"/>
<?php
echo base_url();
?>
</body>
</html>
here is my htaccess file:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L][/quote
The image displays but the href to the stylesheet does not. I even tried changing the style tag to include the base_url
Code:
href="<?php echo base_url();?>styles/mic.css"
My base site url in the config file is set to:
Code:
$config['base_url'] = "http://localhost/mic32/";
I'm certain it's a path issue, but I can't see the wood for the trees, can someone help me with a fresh set of eyes.
Thanks