<?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 19:08:59 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Debuggable Blog: How to paginate a CakePHP search over a HABTM relation without hacking the core]]></title>
      <guid>http://www.phpdeveloper.org/news/11440</guid>
      <link>http://www.phpdeveloper.org/news/11440</link>
      <description><![CDATA[<p>
On the Debuggable blog <i>Tim Koschutzki</i> has a <a href="http://debuggable.com/posts/how-to-paginate-a-search-using-the-cakephp-framework:48fc5f77-38d0-41e0-b711-77c64834cda3">new post</a> showing how to get CakePHP to play nicely with a HABTM query and pagination.
</p>
<blockquote>
The problem is that a user inputs some search criteria into a form, the resultset exceeds 30 rows for example and the user must be able to browse through the resultset via different pages. [...] This problem itself is in fact not much of a problem. We just need to store the form conditions somewhere and then hack it together. So what we are going to do is that we raise the difficulty bar a lot more by trying to get the pagination work over a HABTM relation.
</blockquote>
<p>
Code is included for the model and controller to get the job done.
</p>]]></description>
      <pubDate>Fri, 21 Nov 2008 16:38:30 -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[The Bakery: Five New Articles, Tutorials and Helpers]]></title>
      <guid>http://www.phpdeveloper.org/news/8629</guid>
      <link>http://www.phpdeveloper.org/news/8629</link>
      <description><![CDATA[<p>
The Bakery has five new items they've recently posted - a few new articles, helper information and tutorials. Here's the list:
</p>
<ul>
<li><a href="http://bakery.cakephp.org/articles/view/csv-helper-php5">CSV Helper</a> - I was recently outputting some comma-delimited data and thought I would benefit from a simple csv helper
<li><a href="http://bakery.cakephp.org/articles/view/p28n-the-top-to-bottom-persistent-internationalization-tutorial">p28n, the top to bottom persistent internationalization tutorial</a> - For some developers, allowing a website to support multiple languages is essential. Luckily cakePHP 1.2 has the foundations available to make this possible.
<li><a href="http://bakery.cakephp.org/articles/view/tracking-navigation-history-of-a-user">Tracking navigation history of a user</a> - Many times it can be very useful to track the navigation history of a user. [...] With this HistoryComponent, it's extremely easy to handle such actions.
<li><a href="http://bakery.cakephp.org/articles/view/habtm-hacks-to-menage-columns-in-both-models">Habtm hacks to menage columns in both models</a> - I had a habtm relationship between two models and when i did a "findall" in a model i couldn't filter the rows with a clause from the the other model.
<li><a href="http://bakery.cakephp.org/articles/view/secureget-component">SecureGet Component</a> - I am not pretending this can replace ACL or more complex implementation, it's just a small component, inspired a bit from the Security component.
</ul>
<p>
If you're a CakePHP developer, you'd do well to check out <a href="http://bakery.cakephp.org">The Bakery</a> for these and more great Cake-related articles, tutorials and information.
</p>]]></description>
      <pubDate>Tue, 11 Sep 2007 09:29:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[The Bakery: Five More Articles/Tutorials Posted]]></title>
      <guid>http://www.phpdeveloper.org/news/8499</guid>
      <link>http://www.phpdeveloper.org/news/8499</link>
      <description><![CDATA[<p>
The Bakery has five more great articles/tutorials they've posted recently covering topics like authentication and cross-controller input validation. Here's the list:
</p>
<ul>
<li><a href="http://bakery.cakephp.org/articles/view/obvious-trick-to-reduce-amount-of-habtm-relationship-tables-1">Obvious trick to reduce amount of HABTM relationship tables</a> - Trick howto reduce amount of HABTM tables in complex application
<li><a href="http://bakery.cakephp.org/articles/view/validation-in-another-controller">Validation in another controller</a> - You have 2 controllers, posts and comments, you want to be able to have a form on a posts view which submits to the comments controller, which does its thing then redirect to referrer - easy!
<li><a href="http://bakery.cakephp.org/articles/view/conditinalvalidation-behavior">ConditionalValidation behavior</a> - The validations in cake 1.2 are great, but sometimes I needed to have conditional validation. Because the validations are set at model level, i did implement a behavior that allows to turn on or off validation.
<li><a href="http://bakery.cakephp.org/articles/view/obauth-simple-authentication">obAuth Simple Authentication</a> - Authenticate your users and secure your controller actions from users belonging to certain groups. Or simply secure your controller actions to let any authenticated user to access it.
<li><a href="http://bakery.cakephp.org/articles/view/obauth-component-tutorial">obAuth Component Tutorial</a> - This is a tutorial on how to use obAuth component: http://bakery.cakephp.org/articles/view/130
</ul>
<p>
Check out <a href="http://bakery.cakephp.org/">The Bakery</a> for more information on these and other great CakePHP-related articles, tutorials and commentary.
</p>]]></description>
      <pubDate>Tue, 21 Aug 2007 10:25:00 -0500</pubDate>
    </item>
  </channel>
</rss>
