I am having trouble with this library.
I have set it up correctly as I can see my layout but I cannot get any of my dynamic content showing. I have no error messages or anything, I just have blank space where I ashould have content. I have included my code below, where am I going wrong?
Layout_main.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Design</title>
<link href="<?php echo base_url();?>styles.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<link href="<?php echo base_url();?>iestyles.css" rel="stylesheet" type="text/css" />
<![endif]-->
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="flashheader">
<object type="application/x-shockwave-flash"
data="flash/logo1.swf"
width="780" height="159">
<param name="movie"
value="<?php echo base_url();?>flash/logo.swf" />
<img src="images/logo.gif"
width="780" height="159" alt="design" />
</object>
</div>
<div id="nav">
<ul class="navigation">
<li><a href=""><strong>Home</strong></a></li>
<li><a href=""><strong>About</strong></a></li>
<li><a href=""><strong>content</strong></a></li>
<li><a href=""><strong>Contact</strong></a></li>
</ul>
</div>
</div>
<div id="main">
<?php $content_for_layout ?>
</div>
</div>
</body>
</html>
views/home.php
<div id="content">
<h1>Design</h1>
<p>Welcome to Design</p>
</div>
<div id="projects">
<h1>Our Projects</h1>
<p class="project"><a href=""><img src="" alt="" /></a>
</p>
</div>
controller/home.php
<?php
class home extends Controller {
function home()
{
parent::Controller();
}
function index()
{
$this->layout->view('home');
}
}
?>
