[eluser]kmil0[/eluser]
Hi stuffradio, thanks for the fast response.
but.. what if the menu must be in all the views?? do i have to create
always something like
Code:
$data['links'] = $this->model->get_links();
$this->load->view("myview", $data);
?
right now i'm working with something like this.
i have a template( template.php )
Code:
<html>
<head>
<title><?=$title?></title>
</head>
<body>
<div id="menu">
</div>
<?=$content?>
<div id="foot">
</div>
</body>
</html>
my controllers always make this if they wanna load a view with the template tempalte.php
Code:
function foo(){
$data['title'] = "testing...";
$data_content['something'] = "bla bla bla bla";
$data_content['something2'] = "bla bla bla bla";
$data['content']=$this->load->view("inner_content",$data_content, true);
$this->load->view("template", $data);
}
and I dont need to load always the header, footer, menu.
but.. what i want to do.. is.. load some dynamic content in the
<div id="menu"></div>
calling a showFunction(); or something like that.
thanks again