Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Pagination component for use with or without Twig. Hoping someone will find it useful and maybe give feedback

Hi PHP people. I have worked through all the PHP tracks and in the process of building some independent projects I realized that setting up pagination for dynamic data over and over again is really tedious. So if you're like me and you hate setting up pagination, you will (hopefully) find this little component I built really useful. It is meant to be used with Twig but can actually be used on it's own, just read the documentation. Basically with just a few lines of code you can paginate your dynamic data without having to set up variables. I created what I wish I had from the start. Please feel free to use, share, modify for your purposes, and of course give feedback if you feel so inclined!

https://github.com/michaelacook/SimplePaginator

1 Answer