xssbook2/web/routes/error/controller.php

21 lines
351 B
PHP
Raw Normal View History

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