I wasn't trying to say that this hadn't been an easy way of creating such functionality: I just thought it was kinda messy. I mean, after all, I've used frameworks that did these things with only a few lines. If you were to make yourself a framework, I would suggest possibly putting all of this pagination stuff in your Controller, therein making it easier for people to simply access it with a bit of an include or something along those lines.