21 lines
351 B
PHP
21 lines
351 B
PHP
|
<?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);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|