aboutsummaryrefslogtreecommitdiff
path: root/src/controller/ViewDirector.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller/ViewDirector.php')
-rw-r--r--src/controller/ViewDirector.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/controller/ViewDirector.php b/src/controller/ViewDirector.php
index 59629c9..2d37598 100644
--- a/src/controller/ViewDirector.php
+++ b/src/controller/ViewDirector.php
@@ -66,6 +66,11 @@ class ViewDirector extends AbstractBuilder // ViewDirector est aussi le premier
66 /* 4/ construction de la page avec builders et vues */ 66 /* 4/ construction de la page avec builders et vues */
67 $this->useChildrenBuilder(self::$root_node); 67 $this->useChildrenBuilder(self::$root_node);
68 68
69 if(isset($_SESSION['flash_message'])){
70 $this->html .= '<script>window.flash_message = "' . $_SESSION['flash_message'] . '";</script>';
71 unset($_SESSION['flash_message']);
72 }
73
69 return new Response($this->html, 200); 74 return new Response($this->html, 200);
70 } 75 }
71} \ No newline at end of file 76} \ No newline at end of file