blob: a7d10232aead927bc31897019e674cd6c22d8715 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php /* Copyright (c) 2024 Freya Murphy */
class Bucket_controller extends Controller {
private $bucket_model;
function __construct()
{
$this->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('apps/bucket', $data);
}
}
?>
|