<?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>Sun, 19 May 2013 04:19:11 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Rob Allen's Blog: Top Tip: XHTML with Zend Form Elements]]></title>
      <guid>http://www.phpdeveloper.org/news/10297</guid>
      <link>http://www.phpdeveloper.org/news/10297</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has posted <a href="http://akrabat.com/2008/05/29/top-tip-xhtml-with-zend-form-elements/">a quick tip</a> of how to use the Zend_Form component of the <a href="http://framework.zend.com">Zend Framework</a> to correctly render XHTML compliant output.
</p>
<blockquote>
When you render a Zend_Form, the elements will render to HTML compliance rather than XHTML compliance, even if you have < ?php echo $this->doctype('XHTML1_STRICT');?> at the top of your layout script. Practically, this means that all the input elements do not end in "/>". To resolve this, you need to call the doctype() view helper prior to rendering your form. 
</blockquote>
<p>
He includes an <a href="http://akrabat.com/2008/05/29/top-tip-xhtml-with-zend-form-elements/">example</a> of the doctype call (on a view object) to tell the script to output in the "XHTML1_TRANSITIONAL" format.
</p>]]></description>
      <pubDate>Thu, 29 May 2008 12:01:50 -0500</pubDate>
    </item>
  </channel>
</rss>
