model = $model; } public function index() { parent::index(); $data = $this->model->get_data(); $this->view('header', $data); $this->app_view('error', $data); } } ?>