web-base/core/Documents/Document404.class.php

19 lines
320 B
PHP
Raw Normal View History

2020-02-10 12:32:53 +01:00
<?php
2021-12-08 16:53:43 +01:00
namespace Documents;
2020-04-03 15:56:04 +02:00
2021-12-08 16:53:43 +01:00
use Elements\TemplateDocument;
use Objects\User;
2020-04-03 15:56:04 +02:00
2021-12-08 16:53:43 +01:00
class Document404 extends TemplateDocument {
2020-02-10 12:32:53 +01:00
2021-12-08 16:53:43 +01:00
public function __construct(User $user) {
parent::__construct($user, "404.twig");
2020-02-10 12:32:53 +01:00
}
2021-12-08 16:53:43 +01:00
public function loadParameters() {
parent::loadParameters();
http_response_code(404);
2020-02-10 12:32:53 +01:00
}
}