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