twig render function

This commit is contained in:
2024-10-24 17:44:47 +02:00
parent e7ef57817a
commit e2b3062a22
6 changed files with 23 additions and 30 deletions

View File

@@ -2,6 +2,7 @@
session_start();
require_once('../src/User.php');
require_once('../src/Twig.php');
if (isset($_GET['id']) && !empty($_GET['id'])) {
$id = strip_tags($_GET['id']);
@@ -13,8 +14,4 @@ if (isset($_GET['id']) && !empty($_GET['id'])) {
header('Location: index.php');
}
$vue = "users/details.twig";
$donnees = array("user" => $user);
require_once('../modele/twig.php');
renderTwig("users/details.twig", array("user" => $user));