[eluser]Flying Fish[/eluser]
thanks, let me see if I've got this right
so in MY_Controller is do this...
Code:
class MY_Controller extends Controller {
function __construct()
{
parent::Controller();
$this->load->vars('head', $this->load->view('_inc/head', '', TRUE));
$this->load->vars('masthead', $this->load->view('_inc/masthead', '', TRUE));
$this->load->vars('footer', $this->load->view('_inc/footer', '', TRUE));
}
}
/*
End of file MY_Controller.php
Location: /system/application/libraries/MY_Controller.php
*/
and in all my other conrollers I do this...
Code:
class Order extends MY_Controller{
function __construct()
{
parent::__construct();
}
function index()
{
is that right?