mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-14 05:08:42 +08:00
removed incorrect doc. [skip ci]
This commit is contained in:
@@ -98,20 +98,7 @@ To customize the output, you can chain additional methods to this call:
|
||||
```
|
||||
|
||||
This will create all the `<label>`, `<input>` and other tags according to the template defined by the form field.
|
||||
To add these tags yourself you can use the `Html` helper class. The following is equivalent to the code above:
|
||||
|
||||
```php
|
||||
<?= Html::activeLabel($model, 'password') ?>
|
||||
<?= Html::activePasswordInput($model, 'password') ?>
|
||||
<?= Html::error($model, 'password') ?>
|
||||
|
||||
or
|
||||
|
||||
<?= Html::activeLabel($model, 'username', ['label' => 'name']) ?>
|
||||
<?= Html::activeTextInput($model, 'username') ?>
|
||||
<div class="hint-block">Please enter your name</div>
|
||||
<?= Html::error($model, 'username') ?>
|
||||
```
|
||||
To add these tags yourself you can use the `Html` helper class.
|
||||
|
||||
If you want to use one of HTML5 fields you may specify input type directly like the following:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user