Conditions | 1 |
Paths | 1 |
Total Lines | 24 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function init() |
||
16 | { |
||
17 | $password = new Password('password'); |
||
18 | $password->setRequired(true) |
||
19 | ->setClass('form-control password') |
||
20 | ->setLabel('Password') |
||
21 | ->setId('password') |
||
22 | ->setAttribute('size', 40) |
||
23 | ->setAttribute('placeholder', 'Enter a password') |
||
24 | ->setCustomErrorMessage('You must input a password.'); |
||
25 | |||
26 | $confirm = new Password('confirm'); |
||
27 | $confirm->setRequired(true) |
||
28 | ->setLabel('Confirm Password') |
||
29 | ->setAttribute('size', 40) |
||
30 | ->setAttribute('placeholder', 'Retype your password') |
||
31 | ->setCustomErrorMessage('You must retype your password.'); |
||
32 | |||
33 | $submit = new Submit('submit'); |
||
34 | $submit->setValue('Register'); |
||
35 | |||
36 | $this->addField($password) |
||
37 | ->addField($confirm) |
||
38 | ->addField($submit); |
||
39 | } |
||
41 | } |