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; }
public function __construct($config = array()) { parent::__construct($config); //inherit cid from datafilter if (isset($this->source) and is_object($this->source)) { $this->cid = $this->source->cid; } else { $this->cid = parent::getIdentifier(); } $this->app = \Rapyd\Application::getInstance(); }
/** * Slim's request object * * @return \Slim\Request */ protected function request() { return $this->app->request(); }