course

The Pagination Builder

Let's build PHP pagination from scratch, creating an algorithm to build page links, and a formatter to transform links into an HTML view.

Watch this course

1. Introduction and demo

02:59

2. Database and Doctrine Setup

06:28
  • Pro

3. Creating the builder

08:40
  • Pro

4. Meta object

07:44
  • Pro

5. Returning a results object

04:43
  • Pro

6. Page number algorithm

12:25
  • Pro

7. Tidying up our renderer with an abstract class

02:38
  • Pro

8. The page iterator and rendering links

13:36
  • Pro

9. Finishing up

01:51
  • Pro

10. Bonus: Keeping the query string

03:23
  • Pro
  • 1 hour 4 mins
  • Released 7 months ago

Related content

You might also like these

Slim 3 Pagination

  • 1 hour
  • Released 2 years ago
course
Pro only
Watch now

Better Vue pagination

  • 1 hour 2 mins
  • Released 1 year ago
course
Pro only
Watch now
© 2019 Codecourse Ltd. All Rights Reserved. Born in London, UK. Company number 09041072.