Español | English
Update 2010-01-04 - Revision 20081

Chapter 34. Zend_Form

Table of Contents

34.1. Zend_Form
34.2. Zend_Form Quick Start
34.2.1. Create a form object
34.2.2. Add elements to the form
34.2.3. Render a form
34.2.4. Check if a form is valid
34.2.5. Get error status
34.2.6. Putting it together
34.2.7. Using a Zend_Config Object
34.2.8. Conclusion
34.3. Creating Form Elements Using Zend_Form_Element
34.3.1. Plugin Loaders
34.3.2. Filters
34.3.3. Validators
34.3.3.1. Custom Error Messages
34.3.4. Decorators
34.3.5. Metadata and Attributes
34.3.6. Standard Elements
34.3.7. Zend_Form_Element Methods
34.3.8. Configuration
34.3.9. Custom Elements
34.4. Creating Forms Using Zend_Form
34.4.1. Plugin Loaders
34.4.2. Elements
34.4.2.1. Populating and Retrieving Values
34.4.2.2. Global Operations
34.4.2.3. Methods For Interacting With Elements
34.4.3. Display Groups
34.4.3.1. Global Operations
34.4.3.2. Using Custom Display Group Classes
34.4.3.3. Methods for Interacting With Display Groups
34.4.3.4. Zend_Form_DisplayGroup Methods
34.4.4. Sub Forms
34.4.4.1. Global Operations
34.4.4.2. Methods for Interacting With Sub Forms
34.4.5. Metadata and Attributes
34.4.6. Decorators
34.4.7. Validation
34.4.7.1. Custom Error Messages
34.4.7.2. Retrieving Valid Values Only
34.4.8. Methods
34.4.9. Configuration
34.4.10. Custom forms
34.5. Creating Custom Form Markup Using Zend_Form_Decorator
34.5.1. Operation
34.5.2. Standard Decorators
34.5.3. Custom Decorators
34.5.4. Rendering Individual Decorators
34.6. Standard Form Elements Shipped With Zend Framework
34.6.1. Zend_Form_Element_Button
34.6.2. Zend_Form_Element_Captcha
34.6.3. Zend_Form_Element_Checkbox
34.6.4. Zend_Form_Element_File
34.6.5. Zend_Form_Element_Hidden
34.6.6. Zend_Form_Element_Hash
34.6.7. Zend_Form_Element_Image
34.6.8. Zend_Form_Element_MultiCheckbox
34.6.9. Zend_Form_Element_Multiselect
34.6.10. Zend_Form_Element_Password
34.6.11. Zend_Form_Element_Radio
34.6.12. Zend_Form_Element_Reset
34.6.13. Zend_Form_Element_Select
34.6.14. Zend_Form_Element_Submit
34.6.15. Zend_Form_Element_Text
34.6.16. Zend_Form_Element_Textarea
34.7. Standard Form Decorators Shipped With Zend Framework
34.7.1. Zend_Form_Decorator_Callback
34.7.2. Zend_Form_Decorator_Captcha
34.7.3. Zend_Form_Decorator_Description
34.7.4. Zend_Form_Decorator_DtDdWrapper
34.7.5. Zend_Form_Decorator_Errors
34.7.6. Zend_Form_Decorator_Fieldset
34.7.7. Zend_Form_Decorator_File
34.7.8. Zend_Form_Decorator_Form
34.7.9. Zend_Form_Decorator_FormElements
34.7.10. Zend_Form_Decorator_FormErrors
34.7.11. Zend_Form_Decorator_HtmlTag
34.7.12. Zend_Form_Decorator_Image
34.7.13. Zend_Form_Decorator_Label
34.7.14. Zend_Form_Decorator_PrepareElements
34.7.15. Zend_Form_Decorator_ViewHelper
34.7.16. Zend_Form_Decorator_ViewScript
34.8. Internationalization of Zend_Form
34.8.1. Initializing I18n in Forms
34.8.2. Standard I18n Targets
34.9. Advanced Zend_Form Usage
34.9.1. Array Notation
34.9.2. Multi-Page Forms

34.1. Zend_Form

Zend_Form simplifies form creation and handling in your web application. It performs the following tasks:

  • Element input filtering and validation

  • Element ordering

  • Element and Form rendering, including escaping

  • Element and form grouping

  • Element and form-level configuration

Zend_Form makes use of several Zend Framework components to accomplish its goals, including Zend_Config, Zend_Validate, Zend_Filter, Zend_Loader_PluginLoader, and optionally Zend_View.