db\BaseActiveRecord setAttribute()

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.

doc_Yii
2016-10-30 16:56:54
Comments
Leave a Comment

Please login to continue.