TigerZF
🌐English

Chapter 36. Zend_Form

Table of Contents

36.1. Zend_Form
36.2. Zend_Form Quick Start
36.2.1. Create a form object
36.2.2. Add elements to the form
36.2.3. Render a form
36.2.4. Check if a form is valid
36.2.5. Get error status
36.2.6. Putting it together
36.2.7. Using a Zend_Config Object
36.2.8. Conclusion
36.3. Creating Form Elements Using Zend_Form_Element
36.3.1. Plugin Loaders
36.3.2. Filters
36.3.3. Validators
36.3.3.1. Custom Error Messages
36.3.4. Decorators
36.3.5. Metadata and Attributes
36.3.6. Standard Elements
36.3.7. Zend_Form_Element Methods
36.3.8. Configuration
36.3.9. Custom Elements
36.4. Creating Forms Using Zend_Form
36.4.1. Plugin Loaders
36.4.2. Elements
36.4.2.1. Populating and Retrieving Values
36.4.2.2. Global Operations
36.4.2.3. Methods For Interacting With Elements
36.4.3. Display Groups
36.4.3.1. Global Operations
36.4.3.2. Using Custom Display Group Classes
36.4.3.3. Methods for Interacting With Display Groups
36.4.3.4. Zend_Form_DisplayGroup Methods
36.4.4. Sub Forms
36.4.4.1. Global Operations
36.4.4.2. Methods for Interacting With Sub Forms
36.4.5. Metadata and Attributes
36.4.6. Decorators
36.4.7. Validation
36.4.7.1. Custom Error Messages
36.4.7.2. Retrieving Valid Values Only
36.4.8. Methods
36.4.9. Configuration
36.4.10. Custom forms
36.5. Creating Custom Form Markup Using Zend_Form_Decorator
36.5.1. Operation
36.5.2. Standard Decorators
36.5.3. Custom Decorators
36.5.4. Rendering Individual Decorators
36.6. Standard Form Elements Shipped With Zend Framework
36.6.1. Zend_Form_Element_Button
36.6.2. Zend_Form_Element_Captcha
36.6.3. Zend_Form_Element_Checkbox
36.6.4. Zend_Form_Element_File
36.6.5. Zend_Form_Element_Hidden
36.6.6. Zend_Form_Element_Hash
36.6.7. Zend_Form_Element_Image
36.6.8. Zend_Form_Element_MultiCheckbox
36.6.9. Zend_Form_Element_Multiselect
36.6.10. Zend_Form_Element_Password
36.6.11. Zend_Form_Element_Radio
36.6.12. Zend_Form_Element_Reset
36.6.13. Zend_Form_Element_Select
36.6.14. Zend_Form_Element_Submit
36.6.15. Zend_Form_Element_Text
36.6.16. Zend_Form_Element_Textarea
36.7. Standard Form Decorators Shipped With Zend Framework
36.7.1. Zend_Form_Decorator_Callback
36.7.2. Zend_Form_Decorator_Captcha
36.7.3. Zend_Form_Decorator_Description
36.7.4. Zend_Form_Decorator_DtDdWrapper
36.7.5. Zend_Form_Decorator_Errors
36.7.6. Zend_Form_Decorator_Fieldset
36.7.7. Zend_Form_Decorator_File
36.7.8. Zend_Form_Decorator_Form
36.7.9. Zend_Form_Decorator_FormElements
36.7.10. Zend_Form_Decorator_FormErrors
36.7.11. Zend_Form_Decorator_HtmlTag
36.7.12. Zend_Form_Decorator_Image
36.7.13. Zend_Form_Decorator_Label
36.7.14. Zend_Form_Decorator_PrepareElements
36.7.15. Zend_Form_Decorator_Tooltip
36.7.16. Zend_Form_Decorator_ViewHelper
36.7.17. Zend_Form_Decorator_ViewScript
36.8. Internationalization of Zend_Form
36.8.1. Initializing I18n in Forms
36.8.2. Standard I18n Targets
36.9. Advanced Zend_Form Usage
36.9.1. Array Notation
36.9.2. Multi-Page Forms

36.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.