[eluser]srobet[/eluser]
You can write it at library.
Menu example
Library
Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Templating{
function top_menu()
{
$themenu='<ul><li>Sample Menu</li></ul>';
$return $themenu;
}
}
In Controller load this library and call the menu function.
Code:
function index()
{
$this->load->library('templating');
$data['top_menu']=$this->templating->top_menu();
$this->load->view('the_template',$data);
}
And at your views code, designer just write :
Code:
<?=$top_menu;?>
to create the top menu.
CMIIW