From 30bd3dc2c8e1dea9fb394115138f4f5ef9aedc33 Mon Sep 17 00:00:00 2001 From: raylu Date: Sat, 16 Jul 2011 16:57:53 -0700 Subject: make search index work clean up a lot of code renamed anime.css to table.css --- models/Anime.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'models') diff --git a/models/Anime.php b/models/Anime.php index 8281ea7..71a7fd9 100644 --- a/models/Anime.php +++ b/models/Anime.php @@ -12,7 +12,7 @@ class Anime extends \lithium\data\Model { switch($by) { case 'special_id': - $content = self::find('first', + $anime = self::find('first', array('conditions' => array( $by => $query ), @@ -28,7 +28,7 @@ class Anime extends \lithium\data\Model { if ($query) { $conditions = null; // TODO - $content = self::find('all', array( + $anime = self::find('all', array( 'conditions' => array($by => array('like' => $query)), 'limit' => $limit, 'page' => $page @@ -37,13 +37,13 @@ class Anime extends \lithium\data\Model { } else { - $content = self::find('all', array( + $anime = self::find('all', array( 'limit' => $limit, 'page' => $page )); $total = Anime::count(); } } - return compact('content', 'by', 'limit', 'total', 'page'); + return compact('anime', 'by', 'limit', 'total', 'page'); } } -- cgit v1.2.3