Ejemplo n.º 1
0
 public function getTimeline(Request $request)
 {
     $options = $this->pageParams($request->all());
     $category = $request->input('category');
     $articles = ArticleService::getInstance()->timeline($request->input('category'), $options);
     $this->viewData('maxPage', $articles['maxPage']);
     $this->viewData('page', $request->input('page', 1));
     unset($articles['maxPage']);
     $this->viewData('articles', $articles);
     $this->viewData('navMenuActive', 'article-timeline');
     $this->viewData('categories', CategoryService::getInstance()->categorySummary($category));
     $this->viewData('category', $category);
     return view("frontend.article.article_timeline", $this->viewData);
 }
Ejemplo n.º 2
0
 private function parseCategory($category)
 {
     return CategoryService::getInstance()->getId($category);
 }