for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LmcUser\Form;
use Laminas\Form\Element;
class Base extends ProvidesEventsForm
{
public function __construct($name = null)
parent::__construct($name);
$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(
'type' => 'submit',
$submitElement,
'priority' => -100,
'name' => 'userId',
'type' => 'Laminas\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);
}
public function init()