setAttribute() public method
Sets the named attribute value.
See also hasAttribute().
| public void setAttribute ( $name, $value ) | ||
|---|---|---|
| $name | string |
The attribute name |
| $value | mixed |
The attribute value. |
| throws | yii\base\InvalidParamException |
if the named attribute does not exist. |
Please login to continue.