News Feed
Sections
News Archive


Community Events






feed this:

Rob Allen's Blog:
Top Tip XHTML with Zend Form Elements
0 comments :: posted Thursday May 29, 2008 @ 12:01:50
voice your opinion now!

Rob Allen has posted a quick tip of how to use the Zend_Form component of the Zend Framework to correctly render XHTML compliant output.

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.

He includes an example of the doctype call (on a view object) to tell the script to output in the "XHTML1_TRANSITIONAL" format.

tagged with: zendform zendframework component xhtml render transitional



database releases cakephp zend book PEAR code application developer PHP5 pecl zendframework conference framework ajax security mysql package job release

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework