public function indexAction() { $block = new Block(); $pager = $block->findBlocks($this->dispatcher->getParams()); $this->view->setVar('pager', $pager); }