- New
FormBuilder
class allows easier currying of fields. - Form ID false disables ID.
- Passing null to both
fromArray
andfromObject
is 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
FormSelect
withFormOptions
. - Error messages will no longer be pulled via hardcoded
errors
field, 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
,attr
option 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-checkbox
class. - Styling: all layouts now adds
form-group
class. - Styling: required fields get a
required
class.
- 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
for
on all variants.
- File upload:
current
option using correct key. - Table: fixed group rendering for forms with only groups.
- Layout
render_fieldset
changed prototype, now includes$children_cb
which must be called to render all the content inside the fieldset.
- Fieldset rendering now works correctly when mixing fields inside and outside fieldsets.
begin
is now always called, fixes issues with forms containing only groups.
- Checkbox using labels in table layout.
- Exposed
start
,end
andrender
as 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
preamble
andpostamble
functions. - Layout classes must now implement
render_hidden
function.
- Fixed layout being instance instead of string.
- Supports additional HTTP methods (PATCH, DELETE, etc).
- Support customizing
<form>
wrapper usingpreamble
andpostamble
.