parent
8d8a6de0e1
commit
aa39b5db37
@ -1,18 +1,21 @@
|
||||
<?php
|
||||
global $twig;
|
||||
|
||||
// appele avec index.php ne pas mettre si controleur fonctionnel
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$loader = new \Twig\Loader\FilesystemLoader('templates');
|
||||
$twig = new \Twig\Environment($loader, [
|
||||
'cache' => false,
|
||||
echo $twig->render('head.html.twig', [
|
||||
'title' => "Accueil",
|
||||
'style' => "public/styles/styleProfil.css",
|
||||
'scripts' => array("public/script/theme-toggle.js")
|
||||
]);
|
||||
//
|
||||
|
||||
echo $twig->render('profil.html', array(
|
||||
|
||||
// Rendu du bandeau
|
||||
echo $twig->render('bandeau.html.twig');
|
||||
|
||||
echo $twig->render('profil.html.twig', array(
|
||||
'srcUsername' => "Test User",
|
||||
'srcEmail' => "test@gmail.com",
|
||||
'srcPasswd' => "*****",
|
||||
'srcImg' => "../images/imageProfil.png",
|
||||
'srcImg' => "images/imageProfil.png",
|
||||
));
|
||||
?>
|
Loading…
Reference in new issue