Zend_Form

Table of Contents

1. Zend_Form
2. Zend_Form Quick Start
2.1. Create a form object
2.2. Add elements to the form
2.3. Render a form
2.4. Check if a form is valid
2.5. Get error status
2.6. Putting it together
2.7. Using a Zend_Config object
2.8. Conclusion
3. Creating Form Elements Using Zend_Form_Element
3.1. Plugin Loaders
3.2. Filters
3.3. Validators
3.4. Decorators
3.5. Metadata and Attributes
3.6. Standard Elements
3.7. Zend_Form_Element Methods
3.8. Configuration
3.9. Custom Elements
4. Creating Forms Using Zend_Form
4.1. Plugin Loaders
4.2. Elements
4.3. Display Groups
4.4. Sub Forms
4.5. Metadata and Attributes
4.6. Decorators
4.7. Validation
4.8. Methods
4.9. Configuration
4.10. Custom forms
5. Creating Custom Form Markup Using Zend_Form_Decorator
5.1. Operation
5.2. Standard Decorators
5.3. Custom Decorators
5.4. Rendering Individual Decorators
6. Standard Form Elements Shipped With Zend Framework
6.1. Zend_Form_Element_Button
6.2. Zend_Form_Element_Captcha
6.3. Zend_Form_Element_Checkbox
6.4. Zend_Form_Element_File
6.5. Zend_Form_Element_Hidden
6.6. Zend_Form_Element_Hash
6.7. Zend_Form_Element_Image
6.8. Zend_Form_Element_MultiCheckbox
6.9. Zend_Form_Element_Multiselect
6.10. Zend_Form_Element_Password
6.11. Zend_Form_Element_Radio
6.12. Zend_Form_Element_Reset
6.13. Zend_Form_Element_Select
6.14. Zend_Form_Element_Submit
6.15. Zend_Form_Element_Text
6.16. Zend_Form_Element_Textarea
7. Standard Form Decorators Shipped With Zend Framework
7.1. Zend_Form_Decorator_Callback
7.2. Zend_Form_Decorator_Captcha
7.3. Zend_Form_Decorator_Description
7.4. Zend_Form_Decorator_DtDdWrapper
7.5. Zend_Form_Decorator_Errors
7.6. Zend_Form_Decorator_Fieldset
7.7. Zend_Form_Decorator_File
7.8. Zend_Form_Decorator_Form
7.9. Zend_Form_Decorator_FormElements
7.10. Zend_Form_Decorator_FormErrors
7.11. Zend_Form_Decorator_HtmlTag
7.12. Zend_Form_Decorator_Image
7.13. Zend_Form_Decorator_Label
7.14. Zend_Form_Decorator_PrepareElements
7.15. Zend_Form_Decorator_ViewHelper
7.16. Zend_Form_Decorator_ViewScript
8. Internationalization of Zend_Form
8.1. Initializing I18n in Forms
8.2. Standard I18n Targets
9. Advanced Zend_Form Usage
9.1. Array Notation
9.2. Multi-Page Forms

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.