i think this may help you to get a different perspective
http://ellislab.com/forums/viewthread/156134/
...maybe a wiki and a working example will help
Saludos
thank you
and for pepole who will read this post i solve my problem with the following
first i extend the controler class by
go to libarry in the aplication folder and create MY_Controller.php
this file contain
class Application extends Controller
{
var $controllers; // These all track root folders for views, models, controllers; specified in Auth config
var $models;
var $views;
function header()
{
$this->load->view('headerfooter/header');
}
function footer()
{
$this->load->view('headerfooter/footer');
}
function Application()
{
parent::Controller();
}
}
then in other controler in my aplication i use
class Test extends Application {
//this is the initilization for the class
function Test()
{
parent::Controller();
//parent::Myclass();
}
function index()
{
$this->header();
$this->load->view('test');
$this->footer();
}
}
thans every one for helping