Go Back   SitePoint Forums > Forum Index > Program Your Site > PHP
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old Dec 2, 2007, 14:58   #1
mrsmiley
SitePoint Zealot
 
mrsmiley's Avatar
 
Join Date: Jul 2004
Location: Melbourne
Posts: 173
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.
mrsmiley is offline   Reply With Quote
 

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 18:52.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved