xssbook2/web/_controller/apps/error.php
2024-03-30 12:14:42 -04:00

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);
}
}
?>