20 lines
406 B
PHP
20 lines
406 B
PHP
<?php /* Copyright (c) 2024 Freya Murphy */
|
|
class Error_controller extends Controller {
|
|
|
|
private $error_model;
|
|
|
|
function __construct($load) {
|
|
parent::__construct($load);
|
|
$this->error_model = $this->load->model('apps/error');
|
|
}
|
|
|
|
public function index() {
|
|
parent::index();
|
|
$data = $this->error_model->get_data();
|
|
$this->view('header', $data);
|
|
$this->view('apps/error/main', $data);
|
|
}
|
|
|
|
}
|
|
|
|
?>
|