Пример #1
0
	public function latest($page = 1) {
		$this->template->title(_('Series list'));
		// Create a "Chapter" object. It can contain more than one chapter!
		$chapters = new Chapter();

		// Select the latest 25 released chapters
		$chapters->order_by('created', 'DESC')->limit(15);

		// Get the chapters!
		$chapters->get();
		$chapters->get_teams();
		//$chapters->get_comic();

		$this->template->set('chapters', $chapters);
		$this->template->title(_('Latest'));
		$this->template->build('latest');
	}
Пример #2
0
 public function latest($page = 1)
 {
     $this->template->title(_('Series list'));
     // Create a "Chapter" object. It can contain more than one chapter!
     $chapters = new Chapter();
     // Select the latest 25 released chapters
     $chapters->order_by('created', 'DESC')->get_paged($page, 25);
     // Get the chapters!
     //$chapters->get();
     $chapters->get_teams();
     //$chapters->get_comic();
     $this->template->set('chapters', $chapters);
     $this->template->set('show_sidebar', TRUE);
     $this->template->set('is_latest', true);
     $this->template->title(_('Latest releases'), get_setting('fs_gen_site_title'));
     $this->template->build('latest');
 }