people_model = $this->load->model('apps/people'); $this->format_model = $this->load->model('format'); } public function index(): void { parent::index(); $data = $this->people_model->get_data(); $this->view('header', $data); $this->view('apps/people/header', $data); $this->view('apps/people/main', $data); $this->view('apps/people/footer', $data); $this->view('footer', $data); } public function content(): void { $data = $this->people_model->get_data(); $this->view('apps/people/main', $data); } /** * @return array */ public function people(): array { $data = $this->people_model->get_users(); $this->view('apps/people/people', $data); $max = 0; foreach ($data['users'] as $user) { $max = max($max, $user['id']); } return $data; } } ?>