third
This commit is contained in:
@ -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')]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user