pour prod
This commit is contained in:
17
role.php
Normal file
17
role.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
require_once __DIR__ . '/app/autoload.php';
|
||||
|
||||
use App\Controllers\RoleController;
|
||||
|
||||
try {
|
||||
$pdo = require __DIR__ . '/app/bootstrap.php';
|
||||
(new RoleController($pdo))->index();
|
||||
} catch (Throwable $e) {
|
||||
http_response_code(500);
|
||||
echo '<!doctype html><html lang="fr"><meta charset="utf-8"><title>Erreur PTA</title>';
|
||||
echo '<body style="font-family:Arial,sans-serif;padding:32px;max-width:900px;margin:auto">';
|
||||
echo '<h1>Impossible d’ouvrir la sélection du rôle</h1><p>' . htmlspecialchars($e->getMessage(), ENT_QUOTES, 'UTF-8') . '</p></body></html>';
|
||||
}
|
||||
Reference in New Issue
Block a user