How to customize the error message of a validation rule

Comparing #6 with #7

Revision #7 was created by Yang He Yang He on Jun 29, 2012, 4:13:36 PM.

Removed the "Chinese Version" link which is broken.

Content

[...]
}
}
```

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.

 
### Links
 
[Chinese version](http://www.itkuaixun.com/bbs/thread-191-1-1.html)