PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

MaltBlue.com: Zend Form Mastery with Zend_Config - Part 3, Standard Form & Element Options

Note: This article was originally published at PHPDeveloper on 22 May 2012.
PHPDeveloper

On the MaltBlue.com blog they've posted the latest part of their series on using Zend_Config configuration files to create Zend_Form elements. In this latest article, they show how to set some of the other properties on the elements (like "readonly" or "required").

We've looked at custom form filters and we've looked at the core form configuration. But what about the other form properties? What about: setting an element as readonly, an element as required, ignoring an element and love them or hate them, what about decorators.

He shows how to update the XML file to add these new attributes into the structure and the resulting form. Also included are a few examples of using decorators to configure the look, feel and modify the attributes.