bucket_model = $this->load_model('bucket'); } public function index(): void { parent::index(); $data = $this->bucket_model->get_data(); if ($data === NULL) { $this->error(400); return; } $this->view('bucket/main', $data); } } ?>