- New
FormBuilderclass allows easier currying of fields. - Form ID false disables ID.
- Passing null to both
fromArrayandfromObjectis now allowed.
- ALL Methods names are now camelCase (PSR-1).
- PHP 5.6 or later is now required.
- Select API change: prototype more similar to other fields, replaced
FormSelectwithFormOptions. - Error messages will no longer be pulled via hardcoded
errorsfield, to get errors theFormData::getErrorFor($field)method must be overridden. - Buttons name attribute is now always unprefixed.
- Buttons now sets name attribute properly again.
- Select now escapes label again.
- Fix call to protected method generate_data when nesting FormSelect in containers.
- Form attributes is now pulled directly from
$options,attroption is still present but deprecated.
- Form: support addons: prefix and suffix.
- Layout: empty groups are no longer rendered
- Table: group hint rendering fixed
- Form: allow arbitrary attributes to be passed to form.
- Styling: checkboxes uses
form-checkboxclass. - Styling: all layouts now adds
form-groupclass. - Styling: required fields get a
requiredclass.
- Bootstrap: improved group rendering using grid, will autobalance by default but column classes can be set manually on fields.
- Hints: cleaner row- and field-level hints.
- Table: using labels with
foron all variants.
- File upload:
currentoption using correct key. - Table: fixed group rendering for forms with only groups.
- Layout
render_fieldsetchanged prototype, now includes$children_cbwhich must be called to render all the content inside the fieldset.
- Fieldset rendering now works correctly when mixing fields inside and outside fieldsets.
beginis now always called, fixes issues with forms containing only groups.
- Checkbox using labels in table layout.
- Exposed
start,endandrenderas protected.
- Layout classes must now implement
render_static. - Layout for checkboxes changed, label is now called
text.
- Unbuffered output regression fix since 1.1.0
- Support static fields for all layouts.
- Checkboxes support label=false the same way other fields does.
- Layout classes must now implement
preambleandpostamblefunctions. - Layout classes must now implement
render_hiddenfunction.
- Fixed layout being instance instead of string.
- Supports additional HTTP methods (PATCH, DELETE, etc).
- Support customizing
<form>wrapper usingpreambleandpostamble.