Modification de la manière de rediriger
authorSébastien CHAZALLET <s.chazallet@gmail.com>
Sun, 18 Nov 2012 09:31:01 +0000 (10:31 +0100)
committerSébastien CHAZALLET <s.chazallet@gmail.com>
Sun, 18 Nov 2012 09:31:01 +0000 (10:31 +0100)
data/jeu_essai.db
module/Galerie/src/Galerie/Controller/IndexController.php

index eb497b3..f4ea6d7 100644 (file)
Binary files a/data/jeu_essai.db and b/data/jeu_essai.db differ
index dfe9a5f..c3cdefd 100644 (file)
@@ -161,8 +161,12 @@ class IndexController extends AbstractActionController
                 }
                 $this->_getGalerieTable()->save($galerie);
 
-                // Redirection 
-                return $this->redirect()->toRoute('galerie');
+                // Redirection à l'ancienne mode
+                //return $this->redirect()->toRoute('galerie');
+                // Redirection vers le contrôleur courant
+                //return $this->postRedirectGet();
+                // Redirection vers la page Galerie/Index
+                return $this->postRedirectGet('galerie');
             }
         }