parent
8d8a6de0e1
commit
aa39b5db37
@ -1,18 +1,21 @@
|
|||||||
<?php
|
<?php
|
||||||
|
global $twig;
|
||||||
|
|
||||||
// appele avec index.php ne pas mettre si controleur fonctionnel
|
|
||||||
require __DIR__ . '/../vendor/autoload.php';
|
|
||||||
|
|
||||||
$loader = new \Twig\Loader\FilesystemLoader('templates');
|
echo $twig->render('head.html.twig', [
|
||||||
$twig = new \Twig\Environment($loader, [
|
'title' => "Accueil",
|
||||||
'cache' => false,
|
'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",
|
'srcUsername' => "Test User",
|
||||||
'srcEmail' => "test@gmail.com",
|
'srcEmail' => "test@gmail.com",
|
||||||
'srcPasswd' => "*****",
|
'srcPasswd' => "*****",
|
||||||
'srcImg' => "../images/imageProfil.png",
|
'srcImg' => "images/imageProfil.png",
|
||||||
));
|
));
|
||||||
?>
|
?>
|
Loading…
Reference in new issue