Search code examples
phpzend-frameworkzend-paginator

How do i get row counts of Zend_Paginator object?


I am using Zend_Pagintor class with Zend_Db_Table_Abstract .

Zend_Pagintor has a count() method but it always returns 1!

How do i get row counts?


Solution

  • You can use:

    $paginator->getTotalItemCount();