[eluser]Pedro Luz[/eluser]
i dont know if i did understand want you want
but you can use a kind of template
Code:
// the view that you want to load
$data["main_content"] = "/foobar_list";
// load the template base and pass the data
$this->load->view("/tpl/template_base", $data);
in the view, the /tpl/template_base.php
Code:
<div class="main-content">
<?php
// loads a view if the $main_content is passed
isset($main_content) ? $this->load->view($main_content) : "";
?>
</div>
and you can do this for has many views as you want
just pass
Code:
$data['navigation'] = 'views/navigation';
$data['banners'] = 'views/banners';
$this->load->view('template_base', $data);
this way you can send multiple views to the template