forked from tom.biard/ScienceQuest
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
560 B
22 lines
560 B
<?php
|
|
require_once(__DIR__.'/vendor/autoload.php');
|
|
require_once(__DIR__.'/config/config.php');
|
|
|
|
use controller\FrontController;
|
|
use Twig\Environment;
|
|
use Twig\Loader\FilesystemLoader;
|
|
|
|
//twig
|
|
$loader = new FilesystemLoader('templates');
|
|
$twig = new Environment($loader, [
|
|
'cache' => false,
|
|
]);
|
|
|
|
$basePath = preg_replace('/\/index.php/i', '', $_SERVER['PHP_SELF']);
|
|
|
|
// Tableau qui contient les messages d'erreur
|
|
$dVueErreur = [];
|
|
$dVue['basePath'] = $basePath;
|
|
|
|
$cont = new FrontController();
|
|
|