diff options
author | raylu <raylu@mixpanel.com> | 2011-07-10 23:32:14 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-07-10 23:33:03 -0700 |
commit | 2e6016922cfeaf32e69f65df8178d71387782e2c (patch) | |
tree | 45222803c2b386ed39af4530c9eddc7090f4a60b /controllers/AnimeController.php | |
parent | 913bca163e3c00c2f956b7882945b73a5d47ce71 (diff) | |
download | otakuhub-2e6016922cfeaf32e69f65df8178d71387782e2c.tar.xz |
/anime works
Diffstat (limited to 'controllers/AnimeController.php')
-rw-r--r-- | controllers/AnimeController.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/controllers/AnimeController.php b/controllers/AnimeController.php index 2fc35cc..3e0c51d 100644 --- a/controllers/AnimeController.php +++ b/controllers/AnimeController.php @@ -5,7 +5,13 @@ namespace app\controllers; use app\models\Anime; class AnimeController extends \lithium\action\Controller { - public $publicActions = array('view'); + public $publicActions = array('index', 'view'); + + public function index() + { + $page = $this->request->query['page']; + return Anime::search(null, $page, null); + } public function view($id = null) { @@ -17,4 +23,4 @@ class AnimeController extends \lithium\action\Controller { } } -}
\ No newline at end of file +} |