<?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>Tue, 18 Jun 2013 17:41:19 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[The Bakery: Keeping bindModel and unbindModel out of your Controllers]]></title>
      <guid>http://www.phpdeveloper.org/news/6856</guid>
      <link>http://www.phpdeveloper.org/news/6856</link>
      <description><![CDATA[<p>
On the Bakery (the CakePHP site), there's a <a href="http://bakery.cakephp.org/articles/view/179">new entry</a> talking about how to keep bindModel and unbindModel (create/destroy associations) out of your Controller and banishing them back to where they belong.
</p>
<blockquote>
Here I show you how to add a simple method to your Model classes that allows your controllers to specify binds directly, in a cleaner, more proper way.
</blockquote>
<p>
They <a href="http://bakery.cakephp.org/articles/view/179">start with</a> a simple modification to the AppModel class before implementing the associations in another class, Title, extending the new and improved AppModel. They follow with with a clean, bindModel-free Controller that sets values and reads from the associated model data.
</p>]]></description>
      <pubDate>Fri, 08 Dec 2006 13:53:15 -0600</pubDate>
    </item>
  </channel>
</rss>
