diff options
author | Michael Francis <edude03@gmail.com> | 2011-06-05 11:59:42 -0400 |
---|---|---|
committer | Michael Francis <edude03@gmail.com> | 2011-06-05 11:59:42 -0400 |
commit | b8d663bbe75e00e21c078b22ef9176116945ad54 (patch) | |
tree | e069a02bf9accc9ca5c420092c61b4afc6fcd242 /controllers | |
parent | 1f30528f63a7fc1f33cfa99eaef5117b71d716a5 (diff) | |
download | otakuhub-b8d663bbe75e00e21c078b22ef9176116945ad54.tar.xz |
Added Recently watched (history)
Diffstat (limited to 'controllers')
-rw-r--r-- | controllers/ProfileController.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/controllers/ProfileController.php b/controllers/ProfileController.php index 8e5d487..330c7c3 100644 --- a/controllers/ProfileController.php +++ b/controllers/ProfileController.php @@ -2,6 +2,7 @@ namespace app\controllers; use app\models\User; +use app\models\Profile; use \lithium\security\Auth; class ProfileController extends \lithium\action\Controller { @@ -20,7 +21,9 @@ class ProfileController extends \lithium\action\Controller { $photo = null; $profile = $user->profile; - return compact('user', 'photo', 'profile'); + + $history = Profile::history($user->animelist); + return compact('user', 'photo', 'profile', 'history'); } else { @@ -33,6 +36,7 @@ class ProfileController extends \lithium\action\Controller { } + public function edit($username) { $user = Auth::check('default'); |