hmvc_helper.php: load->library($file_name); // call a default index() method which returns a partial view with data using $CI->load->view('view_name',$data,true); return $CI->$file_name->index(); } ?> ------------------------------------------ Header.php (library) load->model('Nieuws_model'); $data['nieuws'] = $CI->Nieuws_model->get_last_two_entries(); $CI->load->view('global/header', $data); } } ?> front.php (front controller) load->helper('url'); $this->load->helper('html'); $this->load->helper('hmvc'); } function index() { $data['title'] = 'JJB IT Service: Webhosting, onderscheid door kwaliteit!'; $this->load->view('index',$data); } } ?> -------------------- index.php