Notice: This is a discussion thread for comments about the SitePoint article, Perfect PHP Pagination.
Where's the code download?
End of "Required Files" section says "(link to code download)" but doesn't actually display a link to the code download
It would been nice to see this strategy applied to some a little more complex than arrays to something like database queries. The Paginated class requires that you pre-fetch the data into an array which puts needless performance overhead on your script/server. Generally speaking, the 3 primary needs for pagination are arrays, file systems and database results.
You've gone to lengths to separate the page layout from the data, but haven't bothered abstracting the data source for some reason.