How to customize the error message of a validation rule

Comparing #2 with #7

Content

[...]
class Post extends CActiveRecord
{
public function rules()
{
return array(
array('title, content', 'required',

 
     
'message'=>'Please enter a value for {attribute}.'),
// ... other rules
);
}
}
```
[...]