Ejemplo n.º 1
0
 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());
 }
Ejemplo n.º 2
0
 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'));
 }
Ejemplo n.º 3
0
 public function __construct($template = NULL, array $partials = NULL)
 {
     parent::__construct('pages/album/form', $partials);
 }