2017 © Pedro Peláez
 

zf-module zfc-form

ZF2 form management

image

popov/zfc-form

ZF2 form management

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 171 % Grown

The README.md

ZFc Form Module

Features: - registered AbstractFactory which allow create most of Form without factory declaration; - auto resolving for DoctrineHydrator and Translator; - twitter bootstrap template rendering (only html template without core override); - save Form with Ajax; - Add/Remove buttons for dynamic elements., (*1)

Usage

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')., (*2)

Custom options

  • inline

This option will try to render $fieldset's elements inline one by one with col-sm-* class., (*3)

$fieldset->add([
    'name' => $name,
    'type' => Fieldset::class,
    'options' => [
        'inline' => true,
    ],
]);
  • column

This option will take number of columns for element., (*4)

$element = $fieldset->add([
    'name' => 'value',
    'type' => 'text',
    'options' => [
        'column' => 6,
    ],
]);

Collection

The Versions

09/07 2018

dev-master

9999999-dev

ZF2 form management

  Sources   Download

MIT

The Requires

  • php >=5.6

 

zf2 user managment