routeur londres

pull/21/head
brongniart 6 months ago
parent 019f328d19
commit 56b8511e87

@ -11,14 +11,15 @@ require_once __DIR__ . '/config/config.php';
require __DIR__ . '/vendor/autoload.php'; require __DIR__ . '/vendor/autoload.php';
$co = new \Gateway\Connection('pgsql:host=localhost;dbname=dbkekentin;', 'kekentin', ''); $co = new \Gateway\Connection('pgsql:host=localhost;dbname=dbkekentin;', 'kekentin', 'Chocolat-77');
//twig //twig
$loader = new \Twig\Loader\FilesystemLoader('vue/templates'); $loader = new \Twig\Loader\FilesystemLoader('vue/templates');
$twig = new \Twig\Environment($loader, [ $twig = new \Twig\Environment($loader, [
'cache' => 'cache', 'cache' => false,
]); ]);
$twig->addGlobal('racine','/~kekentin/WF/WF-Website');
$cont = new Controleur\FrontControler($co); $cont = new Controleur\FrontControler($co);

@ -1,7 +1,7 @@
<?php <?php
namespace Gateway; namespace Gateway;
use PDO; use PDO;
class Connection extends \PDO { class Connection extends \PDO {

@ -1,13 +1,5 @@
<?php <?php
global $twig;
// appele avec index.php ne pas metre si controleur fonctionnel
require __DIR__ . '/../vendor/autoload.php';
$loader = new \Twig\Loader\FilesystemLoader('vue/templates');
$twig = new \Twig\Environment($loader, [
'cache' => false,
]);
//
echo $twig->render('head.html.twig', array( echo $twig->render('head.html.twig', array(
'title' => "Accueil", 'title' => "Accueil",

@ -4,12 +4,12 @@
echo $twig->render('head.html.twig', array( echo $twig->render('head.html.twig', array(
'title' => "Quote", 'title' => "Quote",
'style' => "../public/styles/styleQuote.css", 'style' => "public/styles/styleQuote.css",
)); ));
echo $twig->render('bandeau.html.twig'); echo $twig->render('bandeau.html.twig');
echo $twig->render('quote.html', array( echo $twig->render('quote.html', array(
'srcImg' => "../public/images/Dark_Vador.jpg", 'srcImg' => "public/images/Dark_Vador.jpg",
'nameCarac' => "Dark Vador", 'nameCarac' => "Dark Vador",
'quoteContent' => "Je suis ton père", 'quoteContent' => "Je suis ton père",
'sourceName' => "Star Wars V : LEmpire contre-attaque", 'sourceName' => "Star Wars V : LEmpire contre-attaque",

@ -2,13 +2,13 @@
<div class="nav"> <div class="nav">
<a href="favorite.html"><img src="images/coeur.svg" alt="coeur" width="67px" height="67px" onmousedown="return false"></a> <a href="favorite.html"><img src="images/coeur.svg" alt="coeur" width="67px" height="67px" onmousedown="return false"></a>
<img id="theme-icon" src="images/dark.svg" alt="toggle theme" width="72px" height="37px" onmousedown="return false" onclick="toggleTheme()"> <img id="theme-icon" src="images/dark.svg" alt="toggle theme" width="72px" height="37px" onmousedown="return false" onclick="toggleTheme()">
<a href="/quiz"><img src="images/quizz.svg" alt="quizz" width="51px" height="82px" onmousedown="return false"></a> <a href="{{ racine }}/quiz"><img src="images/quizz.svg" alt="quizz" width="51px" height="82px" onmousedown="return false"></a>
</div> </div>
<div class="logo"> <div class="logo">
<a href="/"><img src="images/WIKIFANTASY.png" alt="Logo" width="227px" height="106px" onmousedown="return false"></a> <a href="{{ racine }}/"><img src="images/WIKIFANTASY.png" alt="Logo" width="227px" height="106px" onmousedown="return false"></a>
</div> </div>
<div class="user"> <div class="user">
<a href="/login"><img src="images/user_dark.png" alt="user" width="70px" height="70px" onmousedown="return false"></a> <a href="{{ racine }}/login"><img src="images/user_dark.png" alt="user" width="70px" height="70px" onmousedown="return false"></a>
</div> </div>
</div> </div>
Loading…
Cancel
Save