<?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>Mon, 08 Sep 2008 05:45:07 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[ProDevTips.com: Pagination with PHP Doctrine]]></title>
      <guid>http://www.phpdeveloper.org/news/10960</guid>
      <link>http://www.phpdeveloper.org/news/10960</link>
      <description><![CDATA[<p>
The ProDevTips blog continues their series on using Doctrine in a sample application in <a href="http://www.prodevtips.com/2008/09/03/search-and-pagination-with-php-doctrine/">this new part</a>, a look at paginating the results from your database query.
</p>
<blockquote>
Things are starting to become more and more feature complete. Let's look at how to implement general search and pagination.
</blockquote>
<p>
They define the search to perform ($searchConf) and the pagination parameters ($pageConf) and apply them to their current Doctrine setup applying a simple layout to make the numbered links for switching between pages. They also define the search() method that pulls the results from the table to push into the pagination component.
</p>]]></description>
      <pubDate>Thu, 04 Sep 2008 09:30:06 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Debuggable Blog: How to have multiple paginated widgets on the same page with CakePHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10902</guid>
      <link>http://www.phpdeveloper.org/news/10902</link>
      <description><![CDATA[<p>
On the Debuggable blog <i>Tim Koschutzki</i> <a href="http://www.debuggable.com/posts/how-to-have-multiple-paginated-widgets-on-the-same-page-with-cakephp:48ad241e-b018-4532-a748-0ec74834cda3">shows a way</a> to have more than one paginated item on your page at a time (in a CakePHP application).
</p>
<blockquote>
Many of you might have run into the problem of having multiple boxes on the same page that need to be paginated. For example you might have a left column with a list of members of your site and a right column that shows for a example a list of forums. Yeah, that's not the best example, but you get the idea.
</blockquote>
<p>
The typical CakePHP pagination functional assumes that there's only one block of information that needs to be paginated per page. With <i>Tim</i>'s modification, the model name for where the data is being pulled from is appended to the end of the URL and parsed by the script to know which is which.
</p>]]></description>
      <pubDate>Tue, 26 Aug 2008 12:04:58 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NETTUTS.com: Building a Better BlogRoll: Dynamic Fun with SimplePie and jQuery]]></title>
      <guid>http://www.phpdeveloper.org/news/10822</guid>
      <link>http://www.phpdeveloper.org/news/10822</link>
      <description><![CDATA[<p>
In <a href="http://nettuts.com/javascript-ajax/building-a-better-blogroll-dynamic-fun-with-simplepie-and-jquery/">this recent tutorial</a> from the NETTUTS website, they show how to "build a better blogroll" by combining the client-side power of jQuery with the simplicity of the SimplePie aggregation tool.
</p>
<blockquote>
A traditional blogroll is a simple list of other sites, often in the sidebar, that are related, owned by, or otherwise friendly to the home site. Blogrolls are a great idea and on-point with the spirit of blogging, but how is a casual reader to know if any of these sites are truly of interest? Let's improve upon the concept of a blogroll by not just listing sites, but dynamically pulling recent headlines from them, and using some fun jQuery animation.
</blockquote>
<p>
<a href="http://nettuts.s3.amazonaws.com/036_BetterBlogRoll/sourceFiles.zip">Their code</a> (<a href="http://nettuts.s3.amazonaws.com/036_BetterBlogRoll/sourceFiles/index.html">demo here</a>) uses a CSS-based layout and simple pagination to switch between multiple groupings of RSS feed content.
</p>]]></description>
      <pubDate>Wed, 13 Aug 2008 10:23:13 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney's Blog: Zend Framework 1.6.0 Preview, or, PHP 4 is Dead]]></title>
      <guid>http://www.phpdeveloper.org/news/10810</guid>
      <link>http://www.phpdeveloper.org/news/10810</link>
      <description><![CDATA[<p>
In <a href="http://weierophinney.net/matthew/archives/183-Zend-Framework-1.6.0-Preview,-or,-PHP-4-is-Dead.html">this new post</a> to his blog today, <i>Matthew Weier O'Phinney</i> mentions the <a href="http://www.phpdeveloper.org/news/10789">death of PHP4</a> and (the main focus) gives a preview of what's to come in the next version of the Zend Framework (1.6.0).
</p>
<blockquote>
I'm celebrating [the death of PHP4] with the second release candidate of Zend Framework 1.6.0, which should drop today. There are a ton of new features available that I'm really excited about. I'm not going to go into implementation details here, but instead catalogue some of the larger and more interesting changes that are part of the release. 
</blockquote>
<p>
He mentions the Dojo integration, updates to the unit testing infrastructure, captcha support in the Zend_Form component, Firebug support and included pagination functionality. You can grab this preview release from <a href="http://framework.zend.com/download">the downloads page</a> on the Zend Framework website.
</p>]]></description>
      <pubDate>Tue, 12 Aug 2008 08:47:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPFreaks.com: Basic Pagination]]></title>
      <guid>http://www.phpdeveloper.org/news/10438</guid>
      <link>http://www.phpdeveloper.org/news/10438</link>
      <description><![CDATA[<p>
A <a href="http://www.phpfreaks.com/tutorial/basic-pagination">new tutorial</a> has been posted on the PHPFreaks.com site today dealing with paginating your data (in their example, info from a database).
</p>
<blockquote>
It makes way more sense to break up your list into page-sized chunks, and only query your database one chunk at a time. This drastically reduces server processing time and page load time, as well as gives your user smaller pieces of info to digest, so he doesn't choke on whatever crap you're trying to feed him. The act of doing this is called pagination.
</blockquote>
<p>
They include the <a href="http://www.phpfreaks.com/tutorial/basic-pagination/page3">full script</a> for those that want to jump right in and the detailed info in the rest of the tutorial for those that need a little more insight. The script gets a count of the results first then uses the LIMIT format for MySQL to restrict the number of rows returned each time and where to start those returned rows from.
</p>]]></description>
      <pubDate>Thu, 19 Jun 2008 08:47:56 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: Custom CakePHP 1.2 Pagination Queries]]></title>
      <guid>http://www.phpdeveloper.org/news/9742</guid>
      <link>http://www.phpdeveloper.org/news/9742</link>
      <description><![CDATA[<p>
<i>Chris Hartjes</i> has <a href="http://www.littlehart.net/atthekeyboard/2008/03/04/custom-cakephp-12-pagination-queries/">posted some custom queries</a> that showcase the CakePHP framework's paginaton capabilities:
</p>
<blockquote>
Okay, so it turns out that the paginate() method that is used to generate the data that you (oddly enough) paginate through takes the same arguments as Model::findAll(). So, if you want to use your own query, you simply create a 'paginate' method for your model.
</blockquote>
<p>
His <a href="http://www.littlehart.net/atthekeyboard/2008/03/04/custom-cakephp-12-pagination-queries/">queries</a> show the two parts of the equation - fetching the paginated results themselves and grabbing what the current page number is (like "page 7 of 23").
</p>]]></description>
      <pubDate>Wed, 05 Mar 2008 20:54:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Hartjes's Blog: CakePHP Pagination With A HABTM Relationship]]></title>
      <guid>http://www.phpdeveloper.org/news/9235</guid>
      <link>http://www.phpdeveloper.org/news/9235</link>
      <description><![CDATA[<p>
<i>Chris Hartjes</i> has <a href="http://www.littlehart.net/atthekeyboard/2007/12/11/cakephp-pagination-with-a-habtm-relationship/">posted a mini-tutorial</a> on working with HABTM (Has And Belongs To Many) relationships in a CakePHP applications alongside pagination.
</p>
<blockquote>
There are usually lots of Has And Belongs To Many relationship questions on the CakePHP mailing list. Since I am stupid about this stuff, I sought out Nate Abele and bugged him via IM until he agreed to give me an example of how to do this.
</blockquote>
<p>
He <a href="http://www.littlehart.net/atthekeyboard/2007/12/11/cakephp-pagination-with-a-habtm-relationship/">includes</a> both the how and the why, explaining that merging the parameters allows the script to apply the HABTM connections as well as limiting the results for each page.
</p>]]></description>
      <pubDate>Thu, 13 Dec 2007 08:48:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP-Coding-Practices.com: Making CakePHP's Pagination work with Model::expects()]]></title>
      <guid>http://www.phpdeveloper.org/news/8526</guid>
      <link>http://www.phpdeveloper.org/news/8526</link>
      <description><![CDATA[<p>
<i>Tim Koschuetzki</i> has posted <a href="http://php-coding-practices.com/cakephp-specific/making-cakephps-pagination-work-with-modelexpects/">a new CakePHP-related tutorial</a> to the PHP-Coding-Practices.com website today showing a method that gets the framework's pagination to cooperate with a Model's expects() method.
</p>
<blockquote>
Making CakePHP's pagination work together with <a href="http://bakery.cakephp.org/articles/view/an-improvement-to-unbindmodel-on-model-side">Mariano Iglesias'</a> expect functionality seems to be impossible. The expect()'ed associations are only used in the paginator's findCount() call, but not in the findAll() call which actually retrieves the results. Come on join me and find out how to fix this.
</blockquote>
<p>
His <a href="http://php-coding-practices.com/cakephp-specific/making-cakephps-pagination-work-with-modelexpects/">solution</a> involves the creation of a custom pagination method that ends up calling the Paginator helper with some special parameters (replacing the non-cooperative defaults).
</p>]]></description>
      <pubDate>Fri, 24 Aug 2007 07:55:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Completing a Search Engine with MySQL and PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/8439</guid>
      <link>http://www.phpdeveloper.org/news/8439</link>
      <description><![CDATA[<p>
DevShed finished up their series on creating a search engine for MySQL with PHP in <a href="http://www.devshed.com/c/a/MySQL/Completing-a-Search-Engine-with-MySQL-and-PHP-5/">this latest article</a>, finishing off the application with its HTML frontend.
</p>
<blockquote>
In the previous article I showed you how to spawn the results returned by a specific search query across different web pages, so in this last part of the series I'm going to complete this search application by fixing a concrete issue associated specifically with paginating MySQL data sets. 
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/MySQL/Completing-a-Search-Engine-with-MySQL-and-PHP-5/1/">review the code</a> they've created so far for the search engine and push on with the creation of a web page generation class to handle the output of the paginated results.
</p>]]></description>
      <pubDate>Mon, 13 Aug 2007 13:56:46 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Paging Data Sets With PEAR Pager]]></title>
      <guid>http://www.phpdeveloper.org/news/8397</guid>
      <link>http://www.phpdeveloper.org/news/8397</link>
      <description><![CDATA[<p>
On the Zend Developer Zone today, there's a <a href="http://devzone.zend.com/article/2418-Paging-Data-Sets-With-PEAR-Pager">new tutorial</a> covering the use of the PEAR Pager class to break sets into smaller sets for all sorts of data sets (not just database results).
</p>
<blockquote>
PEAR's Pager class, [which] offers developers a framework for breaking large data sets into smaller chunks, or pages, for greater readability or easier navigation. Pagination is important, particularly when dealing with result sets containing hundreds or thousands of items, because it allows the user to exert some degree of control over which segment of the data set is visible at any given point, and thus avoid drowning in a never-ending sea of data.
</blockquote>
<p>
<i>Cal</i> <a href="http://devzone.zend.com/article/2418-Paging-Data-Sets-With-PEAR-Pager">explores the functionality</a> this powerful little class has under the hood including working with pagination of normal arrays, database results and XML information. Of course, code is provided through out and screenshots are posted where needed to show what the output should look like.
</p>]]></description>
      <pubDate>Mon, 06 Aug 2007 15:15:40 -0500</pubDate>
    </item>
  </channel>
</rss>
