[eluser]skunkbad[/eluser]
Code:
// Controller method
public function page()
{
$data = array(
'header' => 'Here goes the Header content',
'body' => 'Here goes the Body content',
'footer' => 'Here goes the Footer content'
);
$this->load->view('template', $data);
}
// Template view (/application/views/template.php)
<html>
<head>...</head>
<body>
<?php
echo $header;
echo $body;
echo $footer;
?>
</body>
</html>