From 5e7bb37a692bf216a5dc79de3bc7c4e828bb35cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20CHAZALLET?= Date: Sun, 18 Nov 2012 10:31:01 +0100 Subject: [PATCH] =?utf8?q?Modification=20de=20la=20mani=C3=A8re=20de=20redir?= =?utf8?q?iger?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- data/jeu_essai.db | Bin 41984 -> 41984 bytes module/Galerie/src/Galerie/Controller/IndexController.php | 8 ++++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/data/jeu_essai.db b/data/jeu_essai.db index eb497b3f9d3fce4068c1c529734418ab0d7cd68e..f4ea6d73b59fac0f73df79420617253adfad20b9 100644 GIT binary patch delta 51 xcmZoT!PIbqX@WGP-b5K^M!k&*^R2in6bvk_j7+Tz%{FsdzZXX4Gx`4u0RW4R4&eX* delta 51 xcmZoT!PIbqX@WGP&O{k!MxBib^R2kd6by~5j18>}4K{OHzZXX4Gx`4u0RV`a4!ZyV diff --git a/module/Galerie/src/Galerie/Controller/IndexController.php b/module/Galerie/src/Galerie/Controller/IndexController.php index dfe9a5f..c3cdefd 100644 --- a/module/Galerie/src/Galerie/Controller/IndexController.php +++ b/module/Galerie/src/Galerie/Controller/IndexController.php @@ -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'); } } -- 1.7.10.4