[eluser]Fireclave[/eluser]
Hi, i am using a Templatefile:
Controller
Code:
function index()
$data['site_load'] = 'adressbook/detail';
$this->load->view('template', [b]$data[/b]);
}
Temlatefile
Code:
$this->load->view('includes/header');
if(isset($site_load))
$this->load->view($site_load);
else
$this->load->view('user_panel/control');
$this->load->view('includes/footer');
But my Problem is, that the $data in my Controller will lost, because i send it to the template and not to the content page...
Do you have any idea ?
Possible is this in the Controller:
$d[$data];
$this->load->view('template', $data);
but i don't like this way.