コード例 #1
0
ファイル: layout.php プロジェクト: ragchuck/ra-Log
 public function __construct($template = NULL, array $partials = NULL)
 {
     parent::__construct($template, $partials);
     $this->base_url = Kohana::$base_url;
     $this->title = __(Request::$initial->controller());
     $this->subtitle = __(Request::$initial->action());
 }
コード例 #2
0
ファイル: list.php プロジェクト: andygoo/kohana_demo
 public function __construct($template = NULL, array $partials = NULL)
 {
     parent::__construct($template, $partials);
     $this->query = Request::current()->query();
     $session = Session::instance();
     $session->set('album_list', $this->query);
     // Create pagination instance
     $this->pagination = Kostache_Pagination::factory(array('kostache' => $this, 'items_per_page' => 5, 'total_items' => $this->get_count(), 'partial' => 'pagination', 'view' => 'pagination/basic'));
 }
コード例 #3
0
ファイル: form.php プロジェクト: andygoo/kohana_demo
 public function __construct($template = NULL, array $partials = NULL)
 {
     parent::__construct('pages/album/form', $partials);
 }