aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/configureController.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-10-25 22:58:45 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-10-25 22:58:45 +0200
commit3ff01d5096c8a52d7d46f72cf361e49ec6f4e93a (patch)
tree27e6c0ab121611b4fd1ef1924a237420cea28153 /app/controllers/configureController.php
parent93440e6b036941685185bd31d6d6cb2d032ec825 (diff)
ajout titre aux pages
Diffstat (limited to 'app/controllers/configureController.php')
-rwxr-xr-xapp/controllers/configureController.php37
1 files changed, 28 insertions, 9 deletions
diff --git a/app/controllers/configureController.php b/app/controllers/configureController.php
index a380e87c4..40c514b5a 100755
--- a/app/controllers/configureController.php
+++ b/app/controllers/configureController.php
@@ -44,6 +44,8 @@ class configureController extends ActionController {
}
$this->view->categories = $catDAO->listCategories ();
+
+ View::prependTitle ('Gestion des catégories - ');
}
public function feedAction () {
@@ -56,18 +58,29 @@ class configureController extends ActionController {
if ($id != false) {
$this->view->flux = $feedDAO->searchById ($id);
- $catDAO = new CategoryDAO ();
- $this->view->categories = $catDAO->listCategories ();
-
- if (Request::isPost () && $this->view->flux) {
- $cat = Request::param ('category');
- $values = array (
- 'category' => $cat
+ if (!$this->view->flux) {
+ Error::error (
+ 404,
+ array ('error' => array ('La page que vous cherchez n\'existe pas'))
);
- $feedDAO->updateFeed ($id, $values);
+ } else {
+ $catDAO = new CategoryDAO ();
+ $this->view->categories = $catDAO->listCategories ();
+
+ if (Request::isPost () && $this->view->flux) {
+ $cat = Request::param ('category');
+ $values = array (
+ 'category' => $cat
+ );
+ $feedDAO->updateFeed ($id, $values);
- $this->view->flux->_category ($cat);
+ $this->view->flux->_category ($cat);
+ }
+
+ View::prependTitle ('Gestion des flux RSS - ' . $this->view->flux->name () . ' - ');
}
+ } else {
+ View::prependTitle ('Gestion des flux RSS - ');
}
}
@@ -101,6 +114,8 @@ class configureController extends ActionController {
Session::_param ('conf', $this->view->conf);
Session::_param ('mail', $this->view->conf->mailLogin ());
}
+
+ View::prependTitle ('Gestion générale et affichage - ');
}
public function importExportAction () {
@@ -132,6 +147,8 @@ class configureController extends ActionController {
Request::forward (array ('c' => 'feed', 'a' => 'massiveImport'));
}
}
+
+ View::prependTitle ('Importation et exportation OPML - ');
}
public function shortcutAction () {
@@ -167,5 +184,7 @@ class configureController extends ActionController {
$confDAO->update ($values);
Session::_param ('conf', $this->view->conf);
}
+
+ View::prependTitle ('Gestion des raccourcis - ');
}
}