Skip to content

Instantly share code, notes, and snippets.

@Goram
Goram / gist:6593313
Last active December 23, 2015 06:19
<?php
array(
'spec' => array(
'name' => 'isParentUser',
'type' => 'Select',
'options' => array(
'label' => 'Darf Benutzer anlegen',
'value_options' => array(
'' => 'Nein',
@Goram
Goram / gist:6579935
Last active December 23, 2015 04:19
<?php
$form = $serviceLocator->get('Application\Form\User\CreateForm');
$form->getFormFactory()->configureFieldset(
$form->get('user'),
array(
'elements' => array(
array(
'spec' => array(
@Goram
Goram / gist:6578877
Last active December 23, 2015 04:18
<?php
$factory = new Factory();
$form = $factory->createForm(array(
'input_filter' => $inputFilter,
'fieldsets' => array(
array(
'spec' => array(
'name' => 'user',
<?php
$factory = new Factory();
$inputFilter = $factory->createInputFilter(array(
'user' => array(
'type' => 'InputFilter',
array(
'name' => 'username',
'validators' => array(
<?php
$form = new Form();
$form->setAttribute('method', 'post');
$fieldset1 = new Fieldset('user');
$fieldset1->setOptions(array(
'use_as_base_fieldset' => true
));
@Goram
Goram / gist:6520240
Last active December 22, 2015 19:29
<?php
$form = new Form();
$form->setAttribute('method', 'post');
$fieldset1 = new Fieldset('user');
$fieldset1->setOptions(array(
'use_as_base_fieldset' => true
));