[eluser]halluchen[/eluser]
Thanks for all responses
Here are samples of my code-
Index function in Controller:
Code:
public function index()
{
$data['head'] = $this->load->view('shared/head', '', TRUE);
$data['header'] = $this->load->view('shared/header', '', TRUE);
$data['navigation'] = $this->load->view('shared/navigation', '', TRUE);
$data['footer'] = $this->load->view('shared/footer', '', TRUE);
$data['slider'] = $this->load->view('shared/slider', '', TRUE);
$data['sidebar'] = $this->load->view('shared/sidebar', '', TRUE);
$this->load->view('home', $data);
}
And here is the top of the Home view:
Code:
<?php
echo $head;
echo $header;
echo $navigation;
?>
<div id="content-contnr">
<div id="main-content">
......
......
Am I doing something wrong?