<?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, 19 Jun 2013 12:22:38 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney's Blog: ZF2 Forms in Beta5]]></title>
      <guid>http://www.phpdeveloper.org/news/18198</guid>
      <link>http://www.phpdeveloper.org/news/18198</link>
      <description><![CDATA[<p>
In <a href="http://mwop.net/blog/2012-07-02-zf2-beta5-forms.html">this new post</a> to his blog, <i>Matthew Weier O'Phinney</i> about some of the recent updates in the latest beta (beta5) of the Zend Framework 2's "Forms" component.
</p>
<blockquote>
Forms are a nightmare for web development. They break the concept of separation of concerns: they have a display aspect (the actual HTML form), they have a validation aspect and the two mix, as you need to display validation error messages. On top of that, the submitted data is often directly related to your domain models, causing more issues. [...] Add to this that the validation logic may be re-usable outside of a forms context, and you've got a rather complex problem.
</blockquote>
<p>
He talks about the newly-rewritten form component along with the new InputFilter to accompany it. He includes an example of using this new component - making a User form that, based off of some annotation rules, does some validation on the property values and things like "required" and custom types. He also talks about some of the other features included in the new package like hydration, complex annotation support and tools to work with collections.
</p>
<p>
You can download this latest beta release <a href="http://packages.zendframework.com/">from the packages.zendframework.com</a> site.
</p>]]></description>
      <pubDate>Mon, 09 Jul 2012 09:34:05 -0500</pubDate>
    </item>
  </channel>
</rss>
