validators\DefaultValueValidator $value

$value public property

The default value or an anonymous function that returns the default value which will be assigned to the attributes being validated if they are empty. The signature of the anonymous function should be as follows,

function($model, $attribute) {
    // compute value
    return $value;
}
public mixed $value = null
doc_Yii
2016-10-30 17:13:32
Comments
Leave a Comment

Please login to continue.