Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 789 Bytes

password.md

File metadata and controls

31 lines (23 loc) · 789 Bytes

Password Field

Represents <input> element of type "password" that lets the user to securely enter a password. Documentation:

Usage Example

Widget:

use Yiisoft\Form\Field\Password;

echo Password::widget()
    ->name('PasswordForm[old]')
    ->value('')
    ->label('Old password')
    ->hint('Enter your old password.')
    ->inputId('passwordform-old');

Result will be:

<div>
    <label for="passwordform-old">Old password</label>
    <input type="password" id="passwordform-old" name="PasswordForm[old]" value>
    <div>Enter your old password.</div>
</div>