I am currently using Ruby for all new projects so this is no longer being updated. Feel free to fork it if you need it - I may delete this soon.
Latter is a form generation library for Kohana.
- Uses Mustache templates
- Imports MangoDB models
- Implements some HTML5 field types and attributes (and aims to eventually support all of them).
Currently it allows you to do the following:
- Create
forms and set theiractionandmethodattributes. - Add fields and set the text for their
labeltags. - Load values from
$_POST,$_GETor your own array. - Validate the form and have the error messages displayed next to the fields.
- Import
string,intanddatefields from a MangoDB model and then have that model's validation run when the form is validated, with any error messages from the model added to their corresponding form fields. - Add rules to fields.
- Be very flexible about how the form is rendered.
- Import all MangoDB field types.
- Import ORM models.
- Translate labels.
- Support all HTML5 field types and attributes.
- Be clever about rules you have added. If for example the
not_emptyrule is added then therequiredattribute will be set on the field.
For more information, please check out the Wiki.