Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 03b09475b4
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (25 sloc) 1.507 kb

No longer actively maintained

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

What is it?

Latter is a form generation library for Kohana.

Buzzwords

  • Uses Mustache templates
  • Imports MangoDB models
  • Implements some HTML5 field types and attributes (and aims to eventually support all of them).

What does it do?

Currently it allows you to do the following:

  • Create forms and set their action and method attributes.
  • Add fields and set the text for their label tags.
  • Load values from $_POST, $_GET or your own array.
  • Validate the form and have the error messages displayed next to the fields.
  • Import string, int and date fields 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.

What will it do, eventually?

  • 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_empty rule is added then the required attribute will be set on the field.

For more information, please check out the Wiki.

Jump to Line
Something went wrong with that request. Please try again.