profile_model = $this->load->model('apps/profile'); $this->people_controller = $this->load->controller('apps/people'); $this->format_model = $this->load->model('format'); $this->post_controller = $this->load->controller('_util/post'); } public function index(): void { parent::index(); $data = $this->profile_model->get_data(); if (!$data) { $this->error(404); } $this->view('header', $data); $this->view('apps/profile/main', $data); $this->view('footer', $data); } } ?>