label() public method
Generates a label tag for $attribute.
public $this label ( $label = null, $options = [] )$label
null|string|false
The label to use. If null, the label will be generated via yii\base\Model::getAttributeLabel(). If false, the generated field will not contain the label part. Note that this will NOT be encoded. $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 t