summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/routes.php4
-rw-r--r--controllers/ContentController.php5
2 files changed, 3 insertions, 6 deletions
diff --git a/config/routes.php b/config/routes.php
index bde33dd..08aeacd 100644
--- a/config/routes.php
+++ b/config/routes.php
@@ -54,8 +54,8 @@ Router::connect('/login', array('controller' => 'users', 'action' => 'login'));
Router::connect('/logout', array('controller' => 'users', 'action' => 'logout'));
/* Content routes */
-Router::connect('/anime', array('controller' => 'content', 'action' => 'anime'));
-Router::connect('/anime/{:args}', array('controller' => 'content', 'action' => 'anime'));
+//Router::connect('/anime', array('controller' => 'content', 'action' => 'anime'));
+Router::connect('/anime/{:args}', array('controller' => 'anime', 'action' => 'view'));
//Pagination route
Router::connect('/{:controller}/{:action}/page:{:page:[0-9]+}');
diff --git a/controllers/ContentController.php b/controllers/ContentController.php
index 0e34022..f024b97 100644
--- a/controllers/ContentController.php
+++ b/controllers/ContentController.php
@@ -7,10 +7,7 @@ class ContentController extends \lithium\action\Controller {
public $publicActions = array('anime');
public function index($type) //type has to equal something
- {
-
-
-
+ {
switch($type) {
case "anime": $content = Anime::all(compact('limit','page','order'));
$total = Anime::count();