diff options
| author | 2012-11-05 21:40:58 +0100 | |
|---|---|---|
| committer | 2012-11-05 21:40:58 +0100 | |
| commit | 209fb252dcce8b69d05f796a914beb0e0bb7f9eb (patch) | |
| tree | 90b5e72a280f5bae15e4d7895f4f6fc9adb34fce /app/controllers/configureController.php | |
| parent | 33e47c5ac4cb622b51b0b23c7cad03d91ca1e26c (diff) | |
Fix issue #4 : ajout des retours utilisateur
Diffstat (limited to 'app/controllers/configureController.php')
| -rwxr-xr-x | app/controllers/configureController.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/app/controllers/configureController.php b/app/controllers/configureController.php index 40c514b5a..d86cda14c 100755 --- a/app/controllers/configureController.php +++ b/app/controllers/configureController.php @@ -41,6 +41,14 @@ class configureController extends ActionController { $catDAO->addCategory ($values); } + // notif + $notif = array ( + 'type' => 'good', + 'content' => 'Les catégories ont été mises à jour' + ); + Session::_param ('notification', $notif); + + Request::forward (array ('c' => 'configure', 'a' => 'categorize'), true); } $this->view->categories = $catDAO->listCategories (); @@ -75,6 +83,15 @@ class configureController extends ActionController { $feedDAO->updateFeed ($id, $values); $this->view->flux->_category ($cat); + + // notif + $notif = array ( + 'type' => 'good', + 'content' => 'Le flux a été mis à jour' + ); + Session::_param ('notification', $notif); + + Request::forward (array ('c' => 'configure', 'a' => 'feed', 'params' => array ('id' => $id)), true); } View::prependTitle ('Gestion des flux RSS - ' . $this->view->flux->name () . ' - '); @@ -113,6 +130,15 @@ class configureController extends ActionController { $confDAO->update ($values); Session::_param ('conf', $this->view->conf); Session::_param ('mail', $this->view->conf->mailLogin ()); + + // notif + $notif = array ( + 'type' => 'good', + 'content' => 'La configuration a été mise à jour' + ); + Session::_param ('notification', $notif); + + Request::forward (array ('c' => 'configure', 'a' => 'display'), true); } View::prependTitle ('Gestion générale et affichage - '); @@ -183,6 +209,15 @@ class configureController extends ActionController { $confDAO = new RSSConfigurationDAO (); $confDAO->update ($values); Session::_param ('conf', $this->view->conf); + + // notif + $notif = array ( + 'type' => 'good', + 'content' => 'Les raccourcis ont été mis à jour' + ); + Session::_param ('notification', $notif); + + Request::forward (array ('c' => 'configure', 'a' => 'shortcut'), true); } View::prependTitle ('Gestion des raccourcis - '); |
