Difference between #4 and #5 of
Reference: Model rules validation

Revision #5 has been created by Maurizio Domba Cerin on Oct 27, 2010, 10:42:54 AM with the memo:

fixed typo error
« previous (#4) next (#7) »

Changes

Title unchanged

Reference: Model rules validation

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Form validation

Content changed

[...]
1. `allowEmpty`, whether the attribute value can be null or empty.
2. `pattern`, the regular expression to be matched with.

+ `required` : [CRequiredValidator], validates that the specified attribute does not have null or empty value.
1. `requiredValue`, the desired value that the attribute must have.
2. `
requiredValuestrict`, whether the comparison to requiredValue is strict.

+ `safe` : [CSafeValidator], marks the associated attributes to be safe for massive assignments.

+ `type` : [CTypeValidator], verifies if the attribute is of the type specified by type. (integer, float, string, date, time, datetime)
1. `allowEmpty`, whether the attribute value can be null or empty.
[...]
97 0
117 followers
Viewed: 767 304 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