It depends on how you want to do this.
If you want to preload all types separately and have it there, then here's how:
In CodeIgniter:
$views['pageOne'] = $this->load->view('view_name', $data, true);
$views['pageTwo'] = $this->load->view('view_name2', $data, true);
in jQuery user interface tabs:
<div id="tabs">
<ul>
<li><a href="#tabs-1">Page 1</a></li>
<li><a href="#tabs-2">Page 2</a></li>
</ul>
<div id="tabs-1">
<?php echo $pageOne;?>
</div>
<div id="tabs-2">
<?php echo $pageTwo;?>
</div>
</div>
Another way would be Ajax .
<div id="tabs">
<ul>
<li><a href="link-to-controller">Page 1</a></li>
<li><a href="link-to-controller">Page 2</a></li>
</ul>
</div>
source
share