projet_php/controllers/ErrorCtrl.php
2026-03-03 11:16:14 +01:00

28 lines
No EOL
408 B
PHP

<?php
namespace Controllers;
/**
* Le contrôleur des erreurs
* @author Laura
*/
class ErrorCtrl extends MotherCtrl{
/**
* Page erreur 404
*/
public function error_404(){
http_response_code(404);
$this->_display("error_404");
exit;
}
/**
* Page erreur 403
*/
public function error_403(){
http_response_code(403);
$this->_display("error_403");
exit;
}
}