Exemple #1
0
 /**
  * Get posts by tag
  *
  * @param string $tag
  *
  * @return Response
  */
 public function tag($tag)
 {
     $posts = $this->posts->activeByTag($tag, Config::get('wardrobe.per_page'));
     if (!$posts) {
         return App::abort(404, 'Page not found');
     }
     return View::make($this->theme . '.archive', compact('posts', 'tag'));
 }
Exemple #2
0
 /**
  * Get posts by tag
  *
  * @param string $tag
  *
  * @return Response
  */
 public function getTag($tag)
 {
     $posts = $this->posts->activeByTag($tag, Config::get('wardrobe.per_page'));
     return View::make('themes.' . $this->theme . '.archive', compact('posts', 'tag'));
 }