[eluser]Michael Wales[/eluser]
The view() method has a third BOOLEAN parameter that allows you to either return the value or send it to the browser (the default). By not definining this - you are trying to send multiple view to the browser from the same controller.
Try the following code:
Code:
class Home extends Controller {
function Home() {
parent::Controller();
}
function index() {
$template['title'] = 'Welcome';
$template['header'] = $this->load->view('header', , TRUE);
$template['content'] = $this->load->view('home', , TRUE);
$this->load->view('template', $template);
}
}