HTML_QuickForm2
Вернуться к: HTML
HTML_QuickForm2 is a PHP5 rewrite of HTML_QuickForm and HTML_QuickForm_Controller packages. It provides methods to create, validate and render HTML forms.
Supports all form elements defined by HTML standard, provides several custom elements.
Server-side and client-side validation, several common rules provided.
Multipage forms (tabbed forms and wizards)
Pluggable elements, rules, renderers and renderer plugins
Major advantages over PHP4 versions:
Most of the package's functionality is covered by unit tests.
DOM-like API for building the form structure, new streamlined API for elements' values handling.
Default rendering without tables (inspired by HTML_QuickForm_Renderer_Tableless).
Renderer plugins for elements with complex rendering needs.
Ability to chain validation rules with 'and' and 'or'
- QuickForm2 Tutorial — Description of basic package features
- Migration from HTML_QuickForm — Step-by-step guide for porting your scripts to HTML_QuickForm2
- Elements — Base Element API and list of built-in Elements
- Element values and Data sources — Setting and getting values for the whole form and for individual elements
- Rules and validation — Checking that you get the values you need
- Javascript support — Client-side validation and Javascript-backed elements
- Overview of QuickForm2_Controller — Easy building of multipage forms
- Migration from HTML_QuickForm_Controller — Step-by-step guide for porting your scripts to HTML_QuickForm2_Controller
- Controller action handlers — Using available handlers and writing custom ones
Вернуться к: HTML