This package supplies a selection of view helpers to ease rendering of forms with
Formidable and Twitter Bootstrap 3.
By default, it ships with a factory to use the helpers in Plates, but the view helpers can also
be used in other template engines which support callables., (*1)
The supplied view helpers have a very opinionated HTML output. If you need a different kind of output, this library is
not for you, and you should write your own helpers., (*2)
Here is a simple example for using the different view helpers in your templates:, (*4)
As you can see, some view helpers take additional optional parameters. The inputText() helper takes an type as third
parameter, By default, it will render a generic text input, but you can change it to any other input type., (*5)
The select() view helper takes a boolean as last argument, which indicates whether it should be multiple or not. The
mandatory options array can either be a simple string to string map, or contain nested arrays like in the country
example to generate option groups, which can be nested indefinitely., (*6)
If you need to separate your form into fieldsets, you can do that manually. There is no need for any additional helpers
there. When you have a child object in your form which can get errors assigned, so that they are not associated with a
specific field, you can pull the errors from a pseudo field and pass them to the formErrors() view helper:, (*7)
Custom error messages
By default, the view helpers use error messages supplied by Formidable itself. If you want to use different messages or
have your own constraints with custom error messages, you add additional messages via configuration:, (*8)