Make it like this:
header.php
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<title>CodeIgniter Tutorial</title>
</head>
<body>
template.php
Code:
<div class"page-wrapper">
<?php echo $contents; ?>
</div>
footer.php
Code:
<em>© 2015</em>
</body>
</html>
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )