summaryrefslogtreecommitdiff
path: root/app/controllers/rssController.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-04-17 19:33:02 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-04-17 19:33:02 +0200
commit592a34f0d21ff1b6d4bd8613052d2684df39d246 (patch)
tree6c93b180bf271e32357bf1bad4baa93aa1233f5b /app/controllers/rssController.php
parent044908439bdd7280f7539e12441d7dfa6c4d4c63 (diff)
parenta2b5e8f3ce597fbcec0c25b68c551a526d2bf3ec (diff)
Merge branch 'dev' into releases
Diffstat (limited to 'app/controllers/rssController.php')
-rwxr-xr-xapp/controllers/rssController.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/app/controllers/rssController.php b/app/controllers/rssController.php
deleted file mode 100755
index 1f66f4517..000000000
--- a/app/controllers/rssController.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-class rssController extends ActionController {
- public function firstAction() {
- header('Content-Type: text/xml');
- header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
- header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
- header('Pragma: public');
-
- $this->view->_useLayout (false);
- }
-
- public function publicAction () {
- $entryDAO = new EntryDAO ();
- $entryDAO->_nbItemsPerPage (-1);
-
- $items = $entryDAO->listPublic ('low_to_high');
-
- try {
- $page = Request::param('page', 1);
- $nb = Request::param('nb', 15);
- $this->view->itemPaginator = new Paginator($items);
- $this->view->itemPaginator->_nbItemsPerPage($nb);
- $this->view->itemPaginator->_currentPage($page);
- } catch(CurrentPagePaginationException $e) {
- Error::error(
- 404,
- array('error' => array('La page que vous cherchez n\'existe pas'))
- );
- }
- }
-
- public function getNbNotReadAction() {
- }
-}