helpers\BaseHtml getInputId()

getInputId() public static method

Generates an appropriate input ID for the specified attribute name or expression.

This method converts the result getInputName() into a valid input ID. For example, if getInputName() returns Post[content], this method will return post-content.

public static string getInputId ( $model, $attribute )
$model yii\base\Model

The model object

$attribute string

The attribute name or expression. See getAttributeName() for explanation of attribute expression.

return string

The generated input ID

throws yii\base\InvalidParamException

if the attribute name contains non-word characters.

doc_Yii
2016-10-30 17:05:08
Comments
Leave a Comment

Please login to continue.