Revision #2 has been created by qiang on Feb 4, 2009, 4:10:10 AM with the memo:
regenerate the markdown output
« previous (#1) next (#3) »
Changes
Title
unchanged
How to customize the error message of a validation rule
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
Content
unchanged
[...]
}
}
```
In the above, the customized error message contains a predefined placeholder `{attribute}`. The [CRequiredValidator] (whose alias is `required`) will replace this placeholder with the actual attribute name that fails the validation.