it looks good, but paginator will not have information about all line counts. I found a solution to override Zend_Paginator_Adapter_DbSelect and set the function
public function getItems($offset, $itemCountPerPage)
{
$this->_select->limit($itemCountPerPage, $offset);
return $this->_select;
}
this will return select with the limit applied, and I can use Paginator with all the functionality
source
share