How to create php pagination without page numbers

1.5k Views Asked by At

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.

  • using zend framework 2(MVC)
  • new to php and zend
  • Prefer not to use library
1

There are 1 best solutions below

0
On BEST ANSWER

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.