Features:
- registered
AbstractFactory
which allow create most ofForm
without factory declaration; - auto resolving for
DoctrineHydrator
andTranslator
; - twitter bootstrap template rendering (only html template without core override);
- save
Form
with Ajax; - Add/Remove buttons for dynamic elements.
Form can be rendered in template as <?= $this->partial('form::form', ['form' => $form]) ?>
.
Or in action as return (new ViewModel(['form' => $form])->setTemplate('form::form')
.
- inline
This option will try to render $fieldset's elements inline one by one with col-sm-*
class.
$fieldset->add([
'name' => $name,
'type' => Fieldset::class,
'options' => [
'inline' => true,
],
]);
- column
This option will take number of columns for element.
$element = $fieldset->add([
'name' => 'value',
'type' => 'text',
'options' => [
'column' => 6,
],
]);