Example #1
0
 public function show($name)
 {
     saveVisitor();
     $name = urldecode($name);
     $category = Model\Portal\Category::whereName($name)->firstOrFail();
     $paginate = pagination($category->articles()->onlyRegistered()->get(), 15, 'dashboard/category/show/' . $name);
     $data['category'] = $category;
     $data['articles'] = $paginate;
     $data['links'] = $this->Mod_link->read();
     $this->template->set('active', $category->id);
     $this->template->set_layout('private_category');
     $this->template->build('category', $data);
 }
Example #2
0
 public function show($name)
 {
     saveVisitor();
     $name = urldecode($name);
     $category = Model\Portal\Category::whereName($name)->firstOrFail();
     $paginate = pagination($category->articles, 15, 'category/show/' . $name, 'bootstrap_md');
     $data['category'] = $category;
     $data['articles'] = $paginate;
     $data['links'] = $this->Mod_link->read();
     $this->template->set('active', $category->id);
     $this->template->set('railnews', false);
     $this->template->set('sidebar', false);
     $this->template->set('single', true);
     $this->template->set('sidebarCategory', true);
     $this->template->build('show', $data);
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper('article');
     saveVisitor();
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     saveVisitor();
 }