<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="http://www.majordojo.com/projects/FeedManager/atom.xsl" type="text/xsl" media="screen"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php" />
  <link rel="self" type="application/atom+xml" href="http://www.majordojo.com/2006/10/phppaginator.php" />
  <id>tag:www.majordojo.com,2010://3/tag:www.majordojo.com,2006://3.1906-</id>
  <updated>2010-02-26T09:30:48Z</updated>
  <title>Comments for I will never implement a pagination control again. Period.</title>
  <subtitle>A blog about Movable Type, technology, geek-dom, science-fiction and yes, sometimes my personal life.</subtitle>
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.261</generator>
  <entry>
    <id>tag:www.majordojo.com,2006://3.1906</id>
    <link rel="alternate" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.majordojo.com/cgi-bin/mt/mt-atom.cgi/weblog/blog_id=3/entry_id=1906" title="I will never implement a pagination control again. Period." />
    <published>2006-10-08T01:46:39Z</published>
    <updated>2007-08-26T07:28:41Z</updated>
    <title>I will never implement a pagination control again. Period.</title>
    <summary>Do you know how many times I have been working on an application that has to allow users to paginate through a list of something? 1,259,041. Give or take a few of course. Well, I finally had enough. There should...</summary>
    <author>
      <name>Byrne</name>
      <uri>http://www.majordojo.com/</uri>
    </author>
    
    <category term="Open Source" />
    
    <category term="Personal Projects" />
    
    <category term="Programming" />
    
    <content type="html" xml:lang="en" xml:base="http://www.majordojo.com/">
      <![CDATA[<p>Do you know how many times I have been working on an application that has to allow users to paginate through a list of <em>something</em>? 1,259,041. </p>

<p>Give or take a few of course.</p>

<p>Well, I finally had enough. There should be a simple open source control that can do this intelligently. Oh, but wait... there isn't. Until now.</p>

<p>I just finished a <a href="http://code.google.com/p/phppaginator/">PHP Pagination Control</a> that can output the usual "Next" and "Previous" page links, as well as a sequence of page numbers (depending upon how many pages are in the result set of course). I modelled the interaction after <a href="http://www.flickr.com">Flickr</a> which has a very nice mechanism for jumping to the front and end of the list as well as navigating to nearby pages. </p>

<p><a href="http://www.majordojo.com/images/screenshots/paginator.png"><img alt="paginator.png" src="http://www.majordojo.com/images/screenshots/paginator-thumb.png" width="350" height="38" /></a></p>

<p>I have also made available a wide array of <a href="http://www.majordojo.com/projects/phppaginator/sample.php">sample outputs</a> from the control if the <a href="http://www.majordojo.com/images/screenshots/paginator.png">screenshot</a> doesn't give you a good enough sense for what this thing looks like.</p>

<p>Feel free to <a href="http://phppaginator.googlecode.com/svn/dist/">download the latest version</a> at any time. It is licensed under the <a href="http://phppaginator.googlecode.com/svn/trunk/LICENSE.txt">BSD license</a> giving more people all the flexibility they need for re-use and re-distribution.</p>
]]>
      

    </content>
  </entry>

  <entry>
    <id>tag:www.majordojo.com,2006://3.1906-comment:29120</id>
    <thr:in-reply-to ref="tag:www.majordojo.com,2006://3.1906" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php"/>
    <link rel="alternate" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php#c29120" />
    <title>Comment from Rosie Sherry on 2006-10-10</title>
    <author>
        <name>Rosie Sherry</name>
<!--        <uri>http://www.rosiesherry.com</uri> -->
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.rosiesherry.com">
	<![CDATA[<p>Looks good - I can vision a new TestRun now :)</p>
]]>
    </content>
    <published>2006-10-10T10:13:32Z</published>
    <updated>2006-10-10T10:13:32Z</updated>
  </entry>

  <entry>
    <id>tag:www.majordojo.com,2006://3.1906-comment:32764</id>
    <thr:in-reply-to ref="tag:www.majordojo.com,2006://3.1906" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php"/>
    <link rel="alternate" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php#c32764" />
    <title>Comment from Matt on 2006-10-24</title>
    <author>
        <name>Matt</name>
<!--         -->
    </author>
    <content type="html" xml:lang="en" xml:base="">
	<![CDATA[<p>Thanks for the pagination control, tried it out tonight and it looks good, although there are a few bugs to iron out (go to page 2 then try and use the 'Prev' button to go back to page 1 :).  Nearly there though!</p>
]]>
    </content>
    <published>2006-10-24T23:31:58Z</published>
    <updated>2006-10-24T23:31:58Z</updated>
  </entry>

  <entry>
    <id>tag:www.majordojo.com,2006://3.1906-comment:35038</id>
    <thr:in-reply-to ref="tag:www.majordojo.com,2006://3.1906" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php"/>
    <link rel="alternate" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php#c35038" />
    <title>Comment from Ian Fenn on 2006-11-01</title>
    <author>
        <name>Ian Fenn</name>
<!--        <uri>http://www.chopstixmedia.com/</uri> -->
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.chopstixmedia.com/">
	<![CDATA[<p>Very neat! Now all we need is this to be an option within Movable Type templates. A resource-light MTPaginate perhaps :-)</p>
]]>
    </content>
    <published>2006-11-01T14:34:23Z</published>
    <updated>2006-11-01T14:34:23Z</updated>
  </entry>

  <entry>
    <id>tag:www.majordojo.com,2006://3.1906-comment:54498</id>
    <thr:in-reply-to ref="tag:www.majordojo.com,2006://3.1906" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php"/>
    <link rel="alternate" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php#c54498" />
    <title>Comment from Renaun Erickson on 2007-02-08</title>
    <author>
        <name>Renaun Erickson</name>
<!--         -->
    </author>
    <content type="html" xml:lang="en" xml:base="">
	<![CDATA[<p>I tried your Paginator class off and it didn't work quite right.  I had to modify the paginate static method to look like this to work:</p>

<p>public static function paginate( $offset, $total, $limit, $base ) {
    //$offset = $options['offset'];
    //$base   = $options['base_url'];
    //$total  = $options['total'];
    //$limit  = $options['limit'];</p>

<p>And then the Next function did not work correctly.  I am using Apache 2.2 and PHP 5 if that helps.</p>
]]>
    </content>
    <published>2007-02-09T04:33:47Z</published>
    <updated>2007-02-09T04:33:47Z</updated>
  </entry>

  <entry>
    <id>tag:www.majordojo.com,2006://3.1906-comment:62099</id>
    <thr:in-reply-to ref="tag:www.majordojo.com,2006://3.1906" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php"/>
    <link rel="alternate" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php#c62099" />
    <title>Comment from Imran on 2007-05-16</title>
    <author>
        <name>Imran</name>
<!--         -->
    </author>
    <content type="html" xml:lang="en" xml:base="">
	<![CDATA[<p>not working for me!</p>

<p>php 4.4.1
mysql 3.23.49
apache 1.3.27</p>

<p>Parse error: syntax error, unexpected T<em>STRING, expecting T</em>OLD<em>FUNCTION or T</em>FUNCTION or T_VAR or '}' in \libs\Paginator.php on line 3</p>
]]>
    </content>
    <published>2007-05-16T10:49:26Z</published>
    <updated>2007-05-16T10:49:26Z</updated>
  </entry>

  <entry>
    <id>tag:www.majordojo.com,2006://3.1906-comment:148536</id>
    <thr:in-reply-to ref="tag:www.majordojo.com,2006://3.1906" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php"/>
    <link rel="alternate" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php#c148536" />
    <title>Comment from RICARDO on 2009-02-07</title>
    <author>
        <name>RICARDO</name>
<!--        <uri>http://www.himbuv.com</uri> -->
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.himbuv.com">
	<![CDATA[<p>change the lines:
remove the bug change the lines:</p>

<p>37) print "      <a>".($lastp-1)."</a>\n";
38) print "      <a>".$lastp."</a>\n";</p>

<p>into</p>

<p>37) print "      <a>".($lastp-1)."</a>\n";
38) print "      <a>".$lastp."</a>\n";</p>
]]>
    </content>
    <published>2009-02-07T15:37:16Z</published>
    <updated>2009-02-07T15:37:16Z</updated>
  </entry>

  <entry>
    <id>tag:www.majordojo.com,2006://3.1906-comment:148537</id>
    <thr:in-reply-to ref="tag:www.majordojo.com,2006://3.1906" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php"/>
    <link rel="alternate" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php#c148537" />
    <title>Comment from RICARDO on 2009-02-07</title>
    <author>
        <name>RICARDO</name>
<!--        <uri>http://www.himbuv.com</uri> -->
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.himbuv.com">
	<![CDATA[<p>bug found: change part of the lines 37 and 38 into
37 .$base.((($lastp - 2)* $limit)+1)
38 .$base.((($lastp-1)*$limit)+1)</p>
]]>
    </content>
    <published>2009-02-07T15:43:40Z</published>
    <updated>2009-02-07T15:43:40Z</updated>
  </entry>

  <entry>
    <id>tag:www.majordojo.com,2006://3.1906-comment:167804</id>
    <thr:in-reply-to ref="tag:www.majordojo.com,2006://3.1906" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php"/>
    <link rel="alternate" type="text/html" href="http://www.majordojo.com/2006/10/phppaginator.php#c167804" />
    <title>Comment from Sven on 2010-01-24</title>
    <author>
        <name>Sven</name>
<!--         -->
    </author>
    <content type="html" xml:lang="en" xml:base="">
	<![CDATA[<p>Well, I might as well admit it: I am a noob.</p>

<p>I have built my own "CMS" system, but I can not figure out how to use your class :o</p>

<p>Please explaine how I can use this class on my pages.</p>
]]>
    </content>
    <published>2010-01-24T11:49:11Z</published>
    <updated>2010-01-24T11:49:11Z</updated>
  </entry>

</feed>
