for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ZfcUser\Form;
use Zend\Form\Element;
use ZfcBase\Form\ProvidesEventsForm;
class Base extends ProvidesEventsForm
{
public function __construct()
parent::__construct();
$this->add(array(
'name' => 'username',
'options' => array(
'label' => 'Username',
),
'attributes' => array(
'type' => 'text'
));
'name' => 'email',
'label' => 'Email',
'name' => 'display_name',
'label' => 'Display Name',
'name' => 'password',
'type' => 'password',
'label' => 'Password',
'type' => 'password'
'name' => 'passwordVerify',
'label' => 'Password Verify',
$submitElement = new Element\Button('submit');
$submitElement
->setLabel('Submit')
->setAttributes(array(
'type' => 'submit',
$this->add($submitElement, array(
'priority' => -100,
'name' => 'id',
'type' => 'Zend\Form\Element\Hidden',
'type' => 'hidden'
// @TODO: Fix this... getValidator() is a protected method.
//$csrf = new Element\Csrf('csrf');
//$csrf->getValidator()->setTimeout($this->getRegistrationOptions()->getUserFormTimeout());
//$this->add($csrf);
}