label() public method
Generates a label tag for $attribute.
public $this label ( $label = null, $options = [] ) | ||
---|---|---|
$label | null|string|false |
The label to use. If |
$options | null|array |
The tag options in terms of name-value pairs. It will be merged with $labelOptions. The options will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using yii\helpers\Html::encode(). If a value is |
return | $this |
The field object itself. |
Please login to continue.