for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* BB's Zend Framework 2 Components
*
* AdminModule
* @package [MyApplication]
* @package BB's Zend Framework 2 Components
* @package AdminModule
* @author Björn Bartels <[email protected]>
* @link https://gitlab.bjoernbartels.earth/groups/zf2
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @copyright copyright (c) 2016 Björn Bartels <[email protected]>
*/
namespace Admin\Form;
use Zend\Form\Form;
class UserDataForm extends Form
{
public function __construct($name = null)
// we want to ignore the name passed
parent::__construct('userdata');
$this->setAttribute('method', 'post');
$this->add(
array(
'name' => 'user_id',
'attributes' => array(
'type' => 'hidden',
),
)
);
'name' => 'display_name',
'type' => 'text',
'options' => array(
'label' => 'Display Name',
'name' => 'submit',
'type' => 'submit',
'value' => 'save',
'id' => 'submitbutton',
'label' => 'save',
'name' => 'reset',
'type' => 'reset',
'value' => 'reset',
'id' => 'resetbutton',
'label' => 'reset',
}