<?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>Thu, 08 Jan 2009 03:05:01 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: Paginating Database Records with the Code Igniter PHP Framework ]]></title>
      <guid>http://www.phpdeveloper.org/news/10913</guid>
      <link>http://www.phpdeveloper.org/news/10913</link>
      <description><![CDATA[<p>
DevShed continues their look at using the <a href="http://www.codeigniter.com">CodeIginiter</a> PHP framework to build a sample application in <a href="http://www.devshed.com/c/a/PHP/Paginating-Database-Records-with-the-Code-Igniter-PHP-Framework/">this latest part</a> of their series - a look a paginating the database results from a query.
</p>
<blockquote>
As you may guess, however, Code Igniter comes bundled with a robust set of core classes, which can be used to perform all sorts of clever tasks, such as working with databases, performing file uploads, validating user-supplied data, and so forth. [...] I'm going to show you how to improve the MySQL-driven application developed in the preceding tutorial, since it'll be provided with the capacity for paging database records, via the pager class included with Code Igniter.
</blockquote>
<p>
He starts by <a href="http://www.devshed.com/c/a/PHP/Paginating-Database-Records-with-the-Code-Igniter-PHP-Framework/1/">reviewing</a> the previous part of the series, pulling the data from MySQL, then shows how to push that through the pagination component to create a simple user listing.
</p>]]></description>
      <pubDate>Thu, 28 Aug 2008 07:57:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Debuggable Blog: How to do Group By conditions in Model find() calls in the CakePHP RC1]]></title>
      <guid>http://www.phpdeveloper.org/news/10396</guid>
      <link>http://www.phpdeveloper.org/news/10396</link>
      <description><![CDATA[<p>
On the Debuggable blog, <i>Tim Koschutzki</i> <a href="http://www.debuggable.com/posts/how-to-do-group-by-conditions-in-model-find()-calls:483fdc1c-8454-4593-a55e-37244834cda3">shows</a> how to  use grouping in your SQL statements with the find() method calls inside of a Model for an app.
</p>
<blockquote>
We have to thank <a href="http://mark-story.com/">Mark Story</a> and wluigi for working on group by conditions for Cake's Model::find() method. Up until now, you would have to add your GROUP BY stuff to string'ed conditions in order to support a group by statement, which could be very ugly.
</blockquote>
<p>
He has some <a href="http://www.debuggable.com/posts/how-to-do-group-by-conditions-in-model-find()-calls:483fdc1c-8454-4593-a55e-37244834cda3">code included</a> that compares the two methods - the newer of the two applying the 'group' option as a regular condition to the query object.
</p>
<p>
This functionality is currently only in the the Release Candidate 1 but will be included in the next major release.
</p>]]></description>
      <pubDate>Thu, 12 Jun 2008 08:48:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SaniSoft Blog: unbindModel() and paginate() gotcha in CakePHP 1.2]]></title>
      <guid>http://www.phpdeveloper.org/news/9750</guid>
      <link>http://www.phpdeveloper.org/news/9750</link>
      <description><![CDATA[<p>
<i>Tarique Sani</i> has <a href="http://www.sanisoft.com/blog/2008/03/03/unbindmodel-and-paginate-gotcha-in-cakephp-12/">pointed out</a> a little "gotcha" he came across when working in his CakePHP application a while back, specifically with the unbindModel and paginate methods.
</p>
<blockquote>
A small note to myself regarding a gotcha which I ran into today morning with the built in unbindModel method which lets you disassociate model relations on the fly.
</blockquote>
<p>
He sets up a situation where his model works correctly in one case but reverts back to the bindings it started with in another. He provides a way around it - an optional parameter that forces the CakePHP framework to treat things correctly.
</p>]]></description>
      <pubDate>Thu, 06 Mar 2008 12:59:00 -0600</pubDate>
    </item>
  </channel>
</rss>
