public function getIndex() { $posts = Post::getPosts(array('limit' => 1)); if (is_array($posts)) { for ($x = 0; $x < count($posts); $x++) { $posts[$x]->post_tags = implode(', ', $this->linkTagByPostId($posts[$x]->post_id)); } } $tagCloud = Post::getTagCloud(); $offenders = Offender::getOffenders(); return View::make('home', array('posts' => $posts, 'tagCloud' => $tagCloud, 'offenders' => $offenders)); }