コード例 #1
0
 public function returnView($projects, $map, $cat_name)
 {
     $id = Utils::getUserID();
     $user = User::getUser($id);
     $user_number = User::getUserNumber();
     $like_number = Projects::countLikes();
     $download_number = Projects::countDownloads();
     $projects_number = Projects::countProjects();
     $cat = Projects::getAllCategory();
     $latest_projects = Projects::getLatestProjects();
     $map = $this->getMapp($map, $cat_name);
     $premium = Projects::isPremium($id);
     $notification = User::getNotification($id);
     return View::make('home')->with('details_header', $user)->with('total_users', $user_number)->with('projects', $projects)->with("category", $cat)->with("latest_pro", $latest_projects)->with("total_likes", $like_number)->with("total_downloads", $download_number)->with("total_projects", $projects_number)->with("map", $map)->with("premium", $premium)->with("notification", $notification)->with("user_id", $id)->with("success", Input::get('success'));
 }