This method converts the result BaseHtml::getInputName into a valid input ID.
For example, if BaseHtml::getInputName returns Post[content], this method will return post-content.
public static getInputId ( |
||
$model | the model object | |
$attribute | string | the attribute name or expression. See [[getAttributeName()]] for explanation of attribute expression. |
return | string | the generated input ID |