projet_php/controllers/ErrorCtrl.php
2026-03-03 09:19:16 +01:00

26 lines
No EOL
390 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");
}
/**
* Page erreur 403
*/
public function error_403(){
http_response_code(403);
$this->_display("error_403");
}
}