예제 #1
0
 public function links()
 {
     if ($this->total_pages < 2) {
         return '';
     }
     $view = 'Pagination.twig';
     $this->app->view()->appendData(get_object_vars($this));
     $output = $this->app->view()->render($view);
     return $output;
 }
예제 #2
0
 protected function fetch($template, $args = null)
 {
     if (!is_null($args)) {
         $this->app->view()->appendData($args);
     }
     if (!is_null($this->renderTemplateSuffix) && !preg_match('/\\.' . $this->renderTemplateSuffix . '$/', $template)) {
         $template .= '.' . $this->renderTemplateSuffix;
     }
     return $this->app->view()->fetch($template);
 }