Difference between #2 and #3 of
How to customize the error message of a validation rule

Revision #3 has been created by wei on Feb 4, 2009, 10:59:29 PM with the memo:

Reduce code horizontal length
« previous (#2) next (#4) »

Changes

Title unchanged

How to customize the error message of a validation rule

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

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

 
     
'message'=>'Please enter a value for {attribute}.'),
// ... other rules
);
}
}
```
[...]
13 0
14 followers
Viewed: 145 816 times
Version: 1.1
Category: Tutorials
Tags:
Written by: qiang
Last updated by: Yang He
Created on: Feb 4, 2009
Last updated: 12 years ago
Update Article

Revisions

View all history