コード例 #1
0
ファイル: TalkTagsController.php プロジェクト: micro/talk
 public function missingMethod($parameters = array())
 {
     $tag = TalkTag::whereSlug($parameters[0])->whereActive(1)->first();
     $posts = null;
     if (null != $tag) {
         $posts = $tag->posts()->whereParent_id(0)->paginate(15);
     }
     $this->layout->content = View::make('talk::tags.list', compact('posts'))->with('tag', $tag);
 }