Skip to content

2.1.0

Compare
Choose a tag to compare
@WouterSioen WouterSioen released this 13 Apr 14:04
· 152 commits to master since this release

This adds some form shorthand methods.

$form
    ->addText('email')
    ->setAttributes(array(
        'required' => 'required',
        'type' => 'email',
    ))
;

to

$form
    ->addText('email')
    ->setType('email')
    ->makeRequired()
;