<?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, 23 May 2013 15:25:03 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Rob Allen's Blog: On models in a Zend Framework application]]></title>
      <guid>http://www.phpdeveloper.org/news/11568</guid>
      <link>http://www.phpdeveloper.org/news/11568</link>
      <description><![CDATA[<p>
In <a href="http://akrabat.com/2008/12/13/on-models-in-a-zend-framework-application/">this new post</a> to his blog <i>Rob Allen</i> looks at models in a Zend Framework application, specifically what thy're for and what they can do.
</p>
<blockquote>
Let's talk about writing models that communicate with databases within a Zend Framework application. It's a popular topic at the moment as there's been a few threads recently on the ZF mailing lists about creating models.
</blockquote>
<p>
He looks at the two different types of relationships they have to offer - "is a" and "has a" - with some code examples illustrating each. For the "has a" relationship (since its a bit more complex) he creates a gateway class that acts as an interface to the user information allowing for method calls to things like fetchAllInLastNameOrder, setFromArray and fetchUserById.
</p>]]></description>
      <pubDate>Mon, 15 Dec 2008 07:58:19 -0600</pubDate>
    </item>
  </channel>
</rss>
