|
|
@@ -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');
|