error_model = $this->load_model('error'); } public function code(int $code): void { // funny 451 change if ($code == 404 && rand(0, 100) > 95) { $code = 451; } parent::index(); $this->load_lang('error'); $data = $this->error_model->get_data($code); $this->view('header', $data); $this->view('error/main', $data); $this->view('footer', $data); } public function index(): void { $this->code(500); } } ?>