From fb57be5a5af3a2fb46b2dbf2b503ffe78eb5cf49 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Sun, 21 Oct 2012 18:47:57 +0200 Subject: First commit --- app/controllers/configureController.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 app/controllers/configureController.php (limited to 'app/controllers/configureController.php') diff --git a/app/controllers/configureController.php b/app/controllers/configureController.php new file mode 100755 index 000000000..0f5d6b658 --- /dev/null +++ b/app/controllers/configureController.php @@ -0,0 +1,33 @@ +view->conf->_postsPerPage (intval ($nb)); + $this->view->conf->_defaultView ($view); + $this->view->conf->_displayPosts ($display); + + $values = array ( + 'posts_per_page' => $this->view->conf->postsPerPage (), + 'default_view' => $this->view->conf->defaultView (), + 'display_posts' => $this->view->conf->displayPosts () + ); + + $confDAO = new RSSConfigurationDAO (); + $confDAO->save ($values); + Session::_param ('conf', $this->view->conf); + } + } +} -- cgit v1.2.3