This method generates a name that can be used as the input name to collect user input
for the specified attribute. The name is generated according to the [[Model::formName|form name]]
of the model and the given attribute name. For example, if the form name of the Post model
is Post, then the input name generated for the content attribute would be Post[content].
See BaseHtml::getAttributeName for explanation of attribute expression.
public static getInputName ( |
||
$model | the model object | |
$attribute | string | the attribute name or expression |
return | string | the generated input name |