xssbook2/web/_controller/apps/error.php

21 lines
406 B
PHP
Raw Normal View History

2024-03-30 16:14:42 +00:00
<?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);
}
}
?>