validators\InlineValidator $clientValidate

$clientValidate public property

An anonymous function or the name of a model class method that returns the client validation code. The signature of the method should be like the following:

function foo($attribute, $params)
{
    return "javascript";
}

where $attribute refers to the attribute name to be validated.

Please refer to clientValidateAttribute() for details on how to return client validation code.

doc_Yii
2016-10-30 17:13:49
Comments
Leave a Comment

Please login to continue.