コード例 #1
0
ファイル: Category.php プロジェクト: ruly1992/elearning
 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);
 }
コード例 #2
0
ファイル: Category.php プロジェクト: fajarekos/elearning
 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);
 }
コード例 #3
0
ファイル: Article.php プロジェクト: ruly1992/elearning
 public function __construct()
 {
     parent::__construct();
     $this->load->helper('article');
     saveVisitor();
 }
コード例 #4
0
ファイル: Category.php プロジェクト: singgihsap/elearning
 public function __construct()
 {
     parent::__construct();
     saveVisitor();
 }