Skip to content
dongbeta edited this page Jul 28, 2011 · 1 revision

In the application development, one of the major tasks is collecting user data via forms. Developers need to design and render form, filter and validate user input. Xoops Engine greatly simplifies this workflow.

Before continue, you'd better understand and know how to use Zend_Form.

New Form Class

Simply instantiate Xoops_Zend_Form to create a form. Compare to Zend_Form, the Xoops_Zend_Form provider extra features:

  • support namespaces and class name prefix in Xoops Engine.
  • using Xoops_Zend_Form::assign($view) to assign the form in action.
  • using Xoops_Zend_Form::hideElement() to remove an element from form's display order
  • using Xoops_Zend_Form::displayElement() to add an element to form's display order
  • using Xoops_Zend_Form::registerElement() to register an element to form but not add to display order
  • using Xoops_Zend_Form::setHash() to add a hash element to form object

More Elements

Xoops form providers more elements and enhance some zend form elements to helpe developer save time.

  • Xoops_Zend_Form_Element_Array
  • Xoops_Zend_Form_Element_CacheExpire
  • Xoops_Zend_Form_Element_CacheLevel
  • Xoops_Zend_Form_Element_Captcha
  • Xoops_Zend_Form_Element_Charset
  • Xoops_Zend_Form_Element_Compound
  • Xoops_Zend_Form_Element_Date
  • Xoops_Zend_Form_Element_Editor
  • Xoops_Zend_Form_Element_Gender
  • Xoops_Zend_Form_Element_Hash
  • Xoops_Zend_Form_Element_Hidden
  • Xoops_Zend_Form_Element_Language
  • Xoops_Zend_Form_Element_Link
  • Xoops_Zend_Form_Element_Locale
  • Xoops_Zend_Form_Element_Note
  • Xoops_Zend_Form_Element_Role
  • Xoops_Zend_Form_Element_Rolemultiple
  • Xoops_Zend_Form_Element_Table
  • Xoops_Zend_Form_Element_Textarea
  • Xoops_Zend_Form_Element_Theme
  • Xoops_Zend_Form_Element_Timezone
  • Xoops_Zend_Form_Element_User
  • Xoops_Zend_Form_Element_Wysiwyg
  • Xoops_Zend_Form_Element_Yesno

We will write the detail of these elements later.

Clone this wiki locally