Difference between #15 and #16 of
Reference: Model rules validation

Revision #16 has been created by vihiz on Nov 16, 2011, 2:35:42 PM with the memo:

Length validation rules 6 and 7 were wrong, corrected. (tooLong = too long, not too short, same for tooShort)
« previous (#15) next (#21) »

Changes

Title unchanged

Reference: Model rules validation

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Form validation, model, validation, reference

Content changed

[...]
1. `allowEmpty`, whether the attribute value can be null or empty.
2. `encoding` , string encoding.
3. `is`, exact length.
4. `max`, maximum length.
5. `min`, minimum length.
6. `tooLong`, user-defined error message used when the value is too
shortlong. 7. `tooShort`, user-defined error message used when the value is too longshort.

+ `numerical` : [CNumberValidator], validates that the attribute value is a number.
1. `allowEmpty`, whether the attribute value can be null or empty.
2. `integerOnly`, whether the attribute value can only be an integer.
3. `max`, upper limit of the number.
[...]
97 0
117 followers
Viewed: 768 071 times
Version: 1.1
Category: How-tos
Written by: krillzip
Last updated by: Rodrigo
Created on: Nov 29, 2009
Last updated: 4 years ago
Update Article

Revisions

View all history