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?
You can use:
$paginator->getTotalItemCount();
Pick the right one for your needs:
count returns the number of pages.getAbsoluteItemNumber returns the absolute item number for the specified item.getCurrentItemCount returns the number of items for the current page.getItemCount returns the number of items in a collection.getItemCountPerPage returns the number of items per page.getTotalItemCount returns the total number of items available.You are probably looking for getCurrentItemCount or getTotalItemCount
Check the API Docs for more details: http://framework.zend.com/apidoc/1.12
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With