diff options
author | Michael Francis <edude03@gmail.com> | 2011-07-15 18:26:47 -0400 |
---|---|---|
committer | Michael Francis <edude03@gmail.com> | 2011-07-15 18:26:47 -0400 |
commit | fe62c892074c6b52f5857d3f630c16a0420f477c (patch) | |
tree | c52dc3b2edbf7b34f16e9b81522f3abb759d7c28 /controllers | |
parent | d6f1b4fb094acaa6b98843e746105aff3eb8735d (diff) | |
download | otakuhub-fe62c892074c6b52f5857d3f630c16a0420f477c.tar.xz |
Return some animes to the "anime" view
Diffstat (limited to 'controllers')
-rw-r--r-- | controllers/AnimeController.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/controllers/AnimeController.php b/controllers/AnimeController.php index 3e0c51d..bd29116 100644 --- a/controllers/AnimeController.php +++ b/controllers/AnimeController.php @@ -9,8 +9,9 @@ class AnimeController extends \lithium\action\Controller { public function index() { - $page = $this->request->query['page']; - return Anime::search(null, $page, null); + $page = isset($this->request->query['page']) ? $this->request->query['page'] : 1; + $anime = Anime::find('all', array('limit' => '10'), compact('page')); + return compact('page', 'anime'); } public function view($id = null) |