helpers\BaseHtml activeHint()

activeHint() public static method (available since version 2.0.4)

Generates a hint tag for the given model attribute.

The hint text is the hint associated with the attribute, obtained via yii\base\Model::getAttributeHint(). If no hint content can be obtained, method will return an empty string.

public static string activeHint ( $model, $attribute, $options = [] )
$model yii\base\Model

The model object

$attribute string

The attribute name or expression. See getAttributeName() for the format about attribute expression.

$options array

The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using encode(). If a value is null, the corresponding attribute will not be rendered. The following options are specially handled:

See renderTagAttributes() for details on how attributes are being rendered.

return string

The generated hint tag

doc_Yii
2016-10-30 17:04:52
Comments
Leave a Comment

Please login to continue.