Photo
Michael Duerinckx
is a (mostly front-end) web developer for Carswell Gould. Other than web development he is into electronics design as well as music production.
All content by Michael Duerinckx unless mentioned otherwise.

Posts in ‘Classes’

PHP class: Page control

Time for my first coding-related post!

Whenever I was coding something in php, and I had to make something with a page control, I started procrastinating, because I was always looking up against figuring that stuff out again.

I decided to get that over with for one and all, and wrote this page control class that allows me to create a new, fairly customizable page control, which can even be used to interact with the code that loads whatever needs to be displayed on the page.

It is only the first version, which only allows for one type of page control (the typical first, previous, next, last controls), but I’m planning to make it do different types in next versions. Anyway, that’s enough rambling, it’s time for some code. (more…)