/** * 帖子详情 * * @return \Illuminate\View\View * @author yangyifan <*****@*****.**> */ public function getInfo(Request $request, $id) { //获得帖子内容 $forum_info = ForumModel::getInfo($id); if (empty($forum_info)) { return redirect()->action('Home\\ForumController@getIndex'); } return view('home.forum.info', ['user_profile' => UserModel::getUserProfile($forum_info->user_info_id), 'data' => $forum_info, 'title' => '论坛-' . $forum_info->title, 'keywords' => '论坛-' . $forum_info->title, 'description' => '论坛-' . $forum_info->title]); }
/** * 用户详细资料 * * @return \Illuminate\View\View * @author yangyifan <*****@*****.**> */ public function getProfile() { return view('user.user.profile', ['title' => '会员-详细资料管理', 'keywords' => '会员-详细资料管理', 'description' => '会员-详细资料管理', 'user_profile' => UserModel::getUserProfile(), 'add_friend_letter' => LetterModel::addFriendLetter()]); }