public function getIterator() { $this->setPageSize(10); // hard coded here but could listen to configuration or request $iterator = parent::getIterator(); if (FALSE === ($size = $this->getPageSize())) { return $iterator; } $page = $this->getRequest()->getParam('p', 1); if ($page < 1) { return $iterator; } $offset = $size * $page - $size; return new \LimitIterator($iterator, $offset, $size); }