The ProDevTips blog continues their series on using Doctrine in a sample application in this new part, a look at paginating the results from your database query.
Things are starting to become more and more feature complete. Let's look at how to implement general search and pagination.
They define the search to perform ($searchConf) and the pagination parameters ($pageConf) and apply them to their current Doctrine setup applying a simple layout to make the numbered links for switching between pages. They also define the search() method that pulls the results from the table to push into the pagination component.