phpzend-frameworkpaginationzend-framework2zend-paginator

How to create php pagination without page numbers


I need to create pagination and it should not have page numbers as if I have it then I need to load all data at page loading.(I was ordered to do so)

I am little bit lost. Don't know where to start Even a little help is highly appreciated.


Solution

  • I am assuming, What you mean is that you cannot have page numbers listed with the results on your page, but just a forward and a back button. You keep track of what offset/limit results are being currently viewed by user, and depending on if the user clicks back/forward, you will send an appropriate request to server with offset and limit as parameters. The server based on php/Zend should return results based on this offset and limit.

    I have had a precursory look at Zend Pagination and it seems to me that it should work for you.