summaryrefslogtreecommitdiff
path: root/web/routes/error/controller.php
blob: 3cb234503c88a7b16c261f104a3cd45ac7abf089 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php /* Copyright (c) 2024 Freya Murphy */
class ErrorController extends Controller {

	private $model;

	function __construct($model) {
		parent::__construct();
		$this->model = $model;
	}

	public function index() {
		parent::index();
		$data = $this->model->get_data();
		$this->view('header', $data);
		$this->app_view('error', $data);
	}

}

?>