validators\UniqueValidator $message

$message public property

The user-defined error message. When validating single attribute, it may contain the following placeholders which will be replaced accordingly by the validator:

  • {attribute}: the label of the attribute being validated
  • {value}: the value of the attribute being validated

When validating mutliple attributes, it may contain the following placeholders:

  • {attributes}: the labels of the attributes being validated.
  • {values}: the values of the attributes being validated.
public string $message = null
doc_Yii
2016-10-30 17:14:10
Comments
Leave a Comment

Please login to continue.