<?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, 06 Jan 2009 00:01:28 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: Dynamic Models in CakePHP 1.2]]></title>
      <guid>http://www.phpdeveloper.org/news/10772</guid>
      <link>http://www.phpdeveloper.org/news/10772</link>
      <description><![CDATA[<p>
In <a href="http://www.littlehart.net/atthekeyboard/2008/08/05/dynamic-models-in-cakephp-12/">this new post</a> to his blog <i>Chris Hartjes</i> mentions a "nifty little feature" that the latest version of the <a href="http://www.cakephp.org">CakePHP framework</a> has - dynamic models.
</p>
<blockquote>
By default now, Cake will automatically use the AppModel class and create a unique alias to a database table if it does not find the file. This means that if you have a table that follows the Cake conventions, needs no validation, and has no associations to other tables, you don't even have to create the model file any more. Woah, talk about a serious time saver in some cases. 
</blockquote>
<p>
He also mentions a gotcha to keep an eye out for - misspelling the model name when you use it. It'll definitely break things. You can find out more about models in CakePHP from <a href="http://book.cakephp.org/view/66/models">this section</a> in their manual, The Cookbook.
</p>]]></description>
      <pubDate>Wed, 06 Aug 2008 09:34:33 -0500</pubDate>
    </item>
  </channel>
</rss>
