Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

form module

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 classes
Octocat-spinner-32 config
Octocat-spinner-32 guide
Octocat-spinner-32 media
Octocat-spinner-32 messages
Octocat-spinner-32 vendor
Octocat-spinner-32 views
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 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.