<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 22 May 2013 15:37:48 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Lee Davis' Blog: Zend Paginator Example]]></title>
      <guid>http://www.phpdeveloper.org/news/17840</guid>
      <link>http://www.phpdeveloper.org/news/17840</link>
      <description><![CDATA[<p>
In a recent post to his blog <i>Lee Davis</i> gives an example of <a href="http://www.duckheads.co.uk/zend-paginator-example/">using the Zend Framework's pagination functionality</a>, complete with some CSS to style it a bit better than the defaults.
</p>
<blockquote>
One of the reasons why zend framework has been so popular is due to all the hard work put in to make sure components are extremely configurable. Sure there are default behaviours, but nothing is assumed and anything that needs to be overwritten or reconfigured can be. A strong emphasis on configuration over convention means you'll never be lumbered with code that just can't be changed. <a href="http://framework.zend.com/manual/en/zend.paginator.usage.html">Zend Paginator</a> is one of the smaller components of Zend Framework that allows you to get a simple
paginator up and running on your listings or search pages in a matter of minutes. 
</blockquote>
<p>
Included in the post is a cut-and-pasteable view that creates the Previous/Next links as well as including the first/last page numbers and a few around the current page.
</p>]]></description>
      <pubDate>Thu, 19 Apr 2012 10:31:29 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Till Klampaeckel's Blog: Iterating over a table (with Zend_Db_Table and Zend_Paginator)]]></title>
      <guid>http://www.phpdeveloper.org/news/16984</guid>
      <link>http://www.phpdeveloper.org/news/16984</link>
      <description><![CDATA[<p>
<i>Till Klampaeckel</i> has a new post today looking at a solution for a common need - <a href="http://till.klampaeckel.de/blog/archives/166-Iterating-over-a-table-with-Zend_Db_Table-and-Zend_Paginator.html">paginating through results</a> as pulled from a database. With the help of the Zend_Db_Table and Zend_Paginator components of the <a href="http://framework.zend.com">Zend Framework</a> it's a simple matter of passing the results into the Paginator and asking for a certain page.
</p>
<blockquote>
So frequently, I need to run small data migrations or transformations. Especially on the way to Doctrine, there's a lot to clean-up in a database which has been used and evolved over five years or so.
</blockquote>
<p>
Code snippets are included to define a class for the table, extending Zend_Db_Table_Abstract, and a new Zend_Paginator_Adapter_DbTableSelect object to create the paginated results. After that, it's as simple as setting the number of items per page and asking for a certain page. There's even a quick bit about being able to edit the rows inside the paginator directly (they're just Zend_Db_Table_Row records).
</p>]]></description>
      <pubDate>Wed, 12 Oct 2011 11:01:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Exploring Zend_Paginator]]></title>
      <guid>http://www.phpdeveloper.org/news/16295</guid>
      <link>http://www.phpdeveloper.org/news/16295</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has a new post today <a href="http://akrabat.com/zend-framework/exploring-zend-paginator/">exploring Zend_Paginator</a> and some of the features it has to offer.
</p>
<blockquote>
One area of displaying lists on web pages that I've generally disliked doing is pagination as it's a bit of a faff. Recently, I needed to do just this though as I couldn't delegate it as my colleague was too busy on other work. As a result, I thought that I should look into <a href="http://framework.zend.com/manual/en/zend.paginator.html">Zend_Paginator</a> this time. Turns out that it's really easy to use and the documentation is great too.
</blockquote>
<p>
He includes some sample code to set up the paginator (for his example it uses a data mapper) and push the results from the database into the Zend_Paginator object. He shows how to use the paginator to work through the results, pulling a page number from the URL. Finally, he shows the HTML to include the pagination links into your page.
</p>]]></description>
      <pubDate>Wed, 04 May 2011 11:26:57 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Joey Rivera's Blog: Using Zend_Paginator with Twitter API and Zend_Cache]]></title>
      <guid>http://www.phpdeveloper.org/news/13935</guid>
      <link>http://www.phpdeveloper.org/news/13935</link>
      <description><![CDATA[<p>
In a recent post to his blog <i>Joey Rivera</i> looks at using the <a href="http://www.joeyrivera.com/2010/using-zend_paginator-with-twitter-api-and-zend_cache/">Zend_paginator component with Twitter and APC</a> to create a cachable, paged view of a set of Twitter API results.
</p>
<blockquote>
I'm going to focus more on Zend_Paginator and Zend_Rest_Client to access Twitters API since I've already created a post on <a href="http://www.joeyrivera.com/2009/caching-using-phpzend_cache-and-mysql/">Zend_Cache</a>. Normally, I would use <A href="http://framework.zend.com/manual/en/zend.service.twitter.html">Zend_Service_Twitter</a> to access the twitter service but it still seems to require authentication to retrieve a users timeline where <a href="http://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-user_timeline?SearchFor=statuses&sp=2">only protected users</a> should require authentication.
</blockquote>
<p>
He includes all of the needed code including the bootstrap.ini file and his own custom Twitter service class that grabs the timeline of the given user and calls the REST interface to grab the latest posts and caches them to a file.
</p>]]></description>
      <pubDate>Fri, 29 Jan 2010 10:54:44 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ibuildings Blog: Zend_Paginator: First Impressions]]></title>
      <guid>http://www.phpdeveloper.org/news/11482</guid>
      <link>http://www.phpdeveloper.org/news/11482</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> has <A href="http://www.ibuildings.com/blog/archives/1531-Zend_Paginator-First-Impressions.html">posted an article</a> to the Ibuildings blog looking at the Zend_Paginator component of the Zend Frameworks, some of her first impressions.
</p>
<blockquote>
The idea of this module is to allow collections of data to be paginated. It takes the set, restricts the results, and can also generate the page numbers you need to move around between the resulting paginated data. Basically it saves me writing the same pagination code multiple times and then having to fix the bug where the last result on the previous page appears on the next ... all this has been thought of already.
</blockquote>
<p>
She shows how it works with a simple example - paginating results from a database table, setting the count per page and the current page number. This object is pushed out to the view and rendered (in her case) via a Smarty template.
</p>]]></description>
      <pubDate>Tue, 02 Dec 2008 07:53:52 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Anis Ahmad's Blog: Join Problems with Zend_Paginator and Zend_Db_Select objects]]></title>
      <guid>http://www.phpdeveloper.org/news/10918</guid>
      <link>http://www.phpdeveloper.org/news/10918</link>
      <description><![CDATA[<p>
<i>Anis Ahmad</i> <a href="http://www.ajaxray.com/blog/2008/08/24/join-problems-with-zend_paginator-and-zend_db_select-objects/">had a problem</a>. The Zend_Paginator component of the Zend Framework, while powerful, wasn't quite working right. Bugs popped up when he used a join along with a Zend_Db_Select.
</p>
<blockquote>
One of the 4 Adapters for Zend_Paginator is DbSelect which uses a Zend_Db_Select instance. Now, the problem occurred if I need to have some calculative data from other tables and use join with the Zend_Db_Select object for them.
</blockquote>
<p>
He gives an example of a join that he performed with the component, the details of the "behind the scenes" code and why it happened that way. He also offers a solution (before the Zend_Pagination component was patched for it, of course) of changing the count() method it uses slightly to remove an unneeded part of the query.
</p>]]></description>
      <pubDate>Thu, 28 Aug 2008 11:18:55 -0500</pubDate>
    </item>
  </channel>
</rss>
