This commit is contained in:
2022-10-16 10:36:53 +02:00
parent 85125c7d6b
commit 0f3447adf5
27 changed files with 1183 additions and 75 deletions

View File

@ -8,9 +8,23 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
class FrontController extends AbstractController
{
#[Route("/", name: "app_front")]
#[Route("/front", name: "app_front")]
public function index(Request $request): Response
{
return $this->render('front/index.html.twig');
}
#[Route("/test", name: "app_reset_step")]
public function test(Request $request): Response
{
dump($request->getSession()->get('step'));
$request->getSession()->set('step', 0);
return $this->render('front/test.html.twig');
}
#[Route("/session", name: "app_session")]
public function session(Request $request): Response
{
dump($request->getSession()->get('liste_poche'));
return $this->render('front/session.html.twig', ['session'=>$request->getSession()->get('step')]);
}
}