第 15 章 Zend_Form

目录

15.1. Zend_Form
15.2. Zend_Form Quick Start
15.2.1. Create a form object
15.2.2. Add elements to the form
15.2.3. Render a form
15.2.4. Check if a form is valid
15.2.5. Get error status
15.2.6. Putting it together
15.2.7. Using a Zend_Config object
15.2.8. Conclusion
15.3. Creating Form Elements Using Zend_Form_Element
15.3.1. Plugin Loaders
15.3.2. Validators
15.3.3. Filters
15.3.4. Decorators
15.3.5. Metadata and Attributes
15.3.6. Standard Elements
15.3.7. Zend_Form_Element Methods
15.3.8. Configuration
15.3.9. Custom Elements
15.4. Creating Forms Using Zend_Form
15.4.1. Plugin Loaders
15.4.2. Elements
15.4.3. Display Groups
15.4.4. Sub Forms
15.4.5. Metadata and Attributes
15.4.6. Decorators
15.4.7. Validation
15.4.8. Methods
15.4.9. Configuration
15.4.10. Custom forms
15.5. Creating Custom Form Markup Using Zend_Form_Decorator
15.5.1. Operation
15.5.2. Standard Decorators
15.5.3. Custom Decorators

15.1. Zend_Form

Zend_Form simplifies form creation and handling in your web application. It accomplishes the following goals:

  • Element validation

  • Element filtering

  • Element ordering

  • Element and Form rendering

  • Element and form grouping

  • Element and form-level configuration

It heavily leverages other Zend Framework components to accomplish its goals, including Zend_Config, Zend_Validate, Zend_Filter, Zend_Loader_PluginLoader, and optionally Zend_View.