Zend_Form is a Zend Framework component created to simplify the process of form validation, data filtering, and data storage. It will also allow forms to consist of multiple pages and maintain the data across those pages.
Be the first to post a text review of Zend_Form Component. Rate and review a project by clicking thumbs up or thumbs down in the right column.
I've released a next packaged version of Zend_Form as 0.2. In this release there are many changes implemented, with two major features being added. The first major feature is accessing fields via properties of a zend_form, and the other is unique Ids for multi-page forms. Both of these new features are covered in depth on the main website: http://mitchellhashimoto.com/zend-form In addition to these features, a demos/ folder was added with working demos for single and multi page forms. The branching demo is not quite complete.
0.2 (current) ============================ r25 * UNIQUE IDs These are used for multiple page forms to identify one storage container from another and should be used in conjunction with user IP, user-agent, etc. to store unique data. This feature was implemented so that multiple instances of a form open at one time on a single computer (via tabs, for example), will not corrupt each other's data and page status. r24 * Fixed Zend_Element_Field::__toString() to no longer have the try...catch block as getValue() no longer throws an exception. Furthermore, added tests to verify this change. r23 * Removed exception being thrown in Zend_Element_Field::getValue() * Added a single parameter to getValue() for a default value if a value has not been set. r21 * Modified multi page demo to check zip code is 5 characters. r20 * Made it so that in the isValid() method it populates all previous page fields with data. * Added multi paged demo. r19 * Modified getMessages() to return an empty array when validations have not run. * Added a demos folder which will be filled with working demos over the next few revisions. r18 * Added getValue() and getMessages() to Zend_Form_Element_Field, which now store their value and error messages. Furthermore Zend_Form's getMessages() now retrieves messages from fields, instead of storing it. r16 * Added magic method __toString to Zend_Form_Element, allowing any element used directly in a view to return it's Id, allowing it to be directly echo'd in a view r15 * Redid nearly every docblock in the library. Much more complete and descriptive documentation, but can still use some work. r14 * Added __get() support to Zend_Form_Element_Branch, allowing pages in branches to be accessed like properties. * Added __get() support to Zend_Form_Element_Page, allowing fields to be accessed by like properties. * Added __get() support to Zend_Form, allowing fields and pages to be accessed via: $form->page_id or $form->field_id * Added unit testing for all __get() calls in the three classes. * Changed Zend_Form::getCurrentPageName() to getCurrentPageId() as it is more correct. r13 * Element IDs now must follow the PHP variable naming standard. (a-z, 0-9, _, and may not begin with a number) 0.1 (rev 12) - Aug 30, 2007 ============================ Initial Release
0.2 (current) ============================ r25 * UNIQUE IDs These are used for multiple page forms to identify one storage container from another and should be used in conjunction with user IP, user-agent, etc. to store unique data. This feature was implemented so that multiple instances of a form open at one time on a single computer (via tabs, for example), will not corrupt each other's data and page status. r24 * Fixed Zend_Element_Field::__toString() to no longer have the try...catch block as getValue() no longer throws an exception. Furthermore, added tests to verify this change. r23 * Removed exception being thrown in Zend_Element_Field::getValue() * Added a single parameter to getValue() for a default value if a value has not been set. r21 * Modified multi page demo to check zip code is 5 characters. r20 * Made it so that in the isValid() method it populates all previous page fields with data. * Added multi paged demo. r19 * Modified getMessages() to return an empty array when validations have not run. * Added a demos folder which will be filled with working demos over the next few revisions. r18 * Added getValue() and getMessages() to Zend_Form_Element_Field, which now store their value and error messages. Furthermore Zend_Form's getMessages() now retrieves messages from fields, instead of storing it. r16 * Added magic method __toString to Zend_Form_Element, allowing any element used directly in a view to return it's Id, allowing it to be directly echo'd in a view r15 * Redid nearly every docblock in the library. Much more complete and descriptive documentation, but can still use some work. r14 * Added __get() support to Zend_Form_Element_Branch, allowing pages in branches to be accessed like properties. * Added __get() support to Zend_Form_Element_Page, allowing fields to be accessed by like properties. * Added __get() support to Zend_Form, allowing fields and pages to be accessed via: $form->page_id or $form->field_id * Added unit testing for all __get() calls in the three classes. * Changed Zend_Form::getCurrentPageName() to getCurrentPageId() as it is more correct. r13 * Element IDs now must follow the PHP variable naming standard. (a-z, 0-9, _, and may not begin with a number) 0.1 (rev 12) - Aug 30, 2007 ============================ Initial Release
I've released a basic 0.1 version of the Zend_Form component. Every feature proposed in the official proposal of this component has been implemented, however it still needs to be fine tuned and bug tested. A test suite has also been included with this release. For more information on using this component, please visit my site: http://mitchellhashimoto.com/zend-form
Be the first person to add a text review.
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?