php
Gwenael PLANCHON 1 year ago
parent 960b8c8f65
commit fe8842a190

@ -25,7 +25,7 @@ class FrontController
public function __construct()
{
global $twig, $router;
global $twig, $router, $dVue;
global $basePath;
//altorouter
@ -38,7 +38,6 @@ class FrontController
$router->map('GET|POST','/pseudo/[a:action]?','PseudoController');
$router->map('GET|POST','/admin/[a:action]','AdminController');
$router->map('GET|POST','/[a:action]?','UserController');
$router->map('GET|POST','/login','login');
session_start();

@ -17,9 +17,9 @@ use model\LoginException;
class UserController {
public function defaultAction(array $params) {
global $twig;
global $twig, $dVue;
echo $twig->render('accueil.html');
echo $twig->render('accueil.html', ["dVue"=>$dVue]);
}
public function joinParty(array $params) {

Loading…
Cancel
Save