<?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 19:10:28 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[MaltBlue.com: Hot to Use the Zend Form ViewScript Decorator in All Modules]]></title>
      <guid>http://www.phpdeveloper.org/news/18337</guid>
      <link>http://www.phpdeveloper.org/news/18337</link>
      <description><![CDATA[<p>
On his MaltBlue.com site today, <i>Matt Setter</i> has a new post showing you how to <a href="http://www.maltblue.com/tips/how-to-make-zend-forms-available-in-all-modules-in-just-one-step">use the Zend_Form ViewScript decorator</a> in your Zend Framework-based application's forms.
</p>
<blockquote>
If you've been using Zend Forms for any length of time, you'll know <a href="http://www.maltblue.com/zend-framework/zend-form-mastery-with-zend-config-part-1-custom-filter-paths">just how flexible and configurable</a> they are. [...] We can, as I'm quite fond of, use the <a href="http://framework.zend.com/manual/en/zend.form.standardDecorators.html#zend.form.standardDecorators.viewScript">ViewScript decorator</a>. This allows us to have nearly 100% control of the configuration of the look and feel of our rendered forms. 
</blockquote>
<p>
The ViewScript decorator lets you have full control over the layout of your form, letting you use a view (file) to define the markup for the form and injecting your elements into it. There is an issue with using the form in other modules though - it can't find the view file by default. The solution is to pass in a viewModule when using the form, showing it where it can find the view.
</p>]]></description>
      <pubDate>Thu, 09 Aug 2012 08:52:38 -0500</pubDate>
    </item>
  </channel>
</rss>
