Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
form module
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
classes
config
guide
media
messages
vendor/recaptcha
views/mmi/form
.gitignore
LICENSE
README.md
init.php

README.md

MMI Form Module

This module generates form markup in either HTML4 or HTML5. By default, HTML5 elements and attributes are generated.

Features include:

  • forms and form fields are easy to create and configure
  • checkbox and radio button groups are automatically created when an array of choices is specified
  • CSRF and CAPTCHA functionality can each be implemented with 1 line of code.
  • in browsers that do not support the new input types (email, tel, url, etc) or new input attributes (pattern, required, etc), the corresponding server-side validation rules are generated
  • with the jQuery validation plugin enabled, client-side script is generated from server-side validation rules
  • both client and server-side messages are extracted from the same message file
  • HTML Purifier is integrated as a filter
  • custom validation rules to support server-side validation of HTML5's min, max, and step attributes

Dependencies

  • mmi-util (only for test controllers)
  • shadowhand's purifier (if using the purify filter)

Documentation

Further documentation is found in the guide directory.

Test Controllers

Test controllers are located in classes/controller/mmi/form/test.

Inspiration & Credits

Something went wrong with that request. Please try again.