/** * @return string */ public function renderPagination(Page $page, Twig_Environment $environment) { $pagerfanta = new Pagerfanta(new PorpaginasAdapter($page)); $pagerfanta->setCurrentPage($page->getCurrentPage()); $pagerfanta->setMaxPerPage($page->getCurrentLimit()); return $environment->getExtension('pagerfanta')->renderPagerfanta($pagerfanta, $this->viewName, $this->options); }
public function renderTotal(Page $page) { return $page->totalCount(); }