Commit cac3c090 authored by Mat's avatar Mat

$session est potentiellement disponible sur toutes les pages

parent 97042ce4
...@@ -35,6 +35,9 @@ class ImageController extends MasterController ...@@ -35,6 +35,9 @@ class ImageController extends MasterController
return $this->redirectToRoute('techno_gallery_read'); return $this->redirectToRoute('techno_gallery_read');
} }
$session = $this->get('session');
dump($session);
return $this->render('@Techno/Image/create.html.twig', array( return $this->render('@Techno/Image/create.html.twig', array(
'formImage' => $form->createView() 'formImage' => $form->createView()
)); ));
......
...@@ -111,7 +111,7 @@ class OwnerController extends MasterController ...@@ -111,7 +111,7 @@ class OwnerController extends MasterController
// charge un service session // charge un service session
$session = $this->get('session'); $session = $this->get('session');
$session->set('test', 'oups'); //$session->set('test', 'oups');
dump($session); dump($session);
return $this->render('@Techno/Ajax/Owner/mainDisplay.html.twig', array( return $this->render('@Techno/Ajax/Owner/mainDisplay.html.twig', array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment