Ejemplo n.º 1
0
 /**
  * Collect all needed data for first page
  * @return Response
  */
 public function index()
 {
     Debugbar::startMeasure('render', 'Time for rendering');
     $latestTalk = $this->getLatestTalk();
     $hotTopics = $this->getHotTopics();
     $latestTopics = $this->getLatestTopics();
     $latestNews = $this->getLatestForum(4, 3);
     $columnLatests = $this->getLatestForum(22, 3);
     $lastGalleryImages = $this->getGelllery();
     $totalMembers = $this->ipb->getTotalMembers();
     $fbLikeCounter = $this->facebook->facebookLike();
     $lastMatch = $this->LastMatch();
     $standing = $this->LeagueTable();
     $fbFeeds = $this->facebook->newsFeed();
     Debugbar::stopMeasure('render');
     return view('application.home.default', compact('columnLatests', 'lastGalleryImages', 'latestTopics', 'latestTalk', 'latestNews', 'hotTopics', 'totalMembers', 'fbLikeCounter', 'lastMatch', 'standing', 'fbFeeds'));
 }