Guide
API
Wiki
Forum
Community
Live Chat
Extensions
Resources
Members
Hall of Fame
Badges
More
Learn
Books
Resources
Develop
Download Yii
Report an Issue
Report a Security Issue
Contribute to Yii
Donate
About
What is Yii?
Release Cycle
News
License
Team
Official Logos and Design
Login
Yii Framework Wiki
Write
new article
Categories
All
Tips
342
How-tos
445
Tutorials
289
FAQs
45
Others
56
Popular Tags
All
yii2
90
CGridView
69
AJAX
57
Yii
48
tutorial
39
model
31
i18n
30
authentication
28
security
26
database
24
Recent Comments
vivian77
on
Yii2 GridView Sorting and Searching with a Junction Table Column(Many to Many Relationship)
3 days ago
E.Alamo
on
PHP built-in server integration
a month ago
coderevolts
on
Implementing cron jobs with Yii
2 months ago
Néstor Acevedo
on
Filter & Sort by calculated/related fields in GridView Yii 2.0
5 months ago
Kamil Pomykała
on
JWT authentication tutorial
11 months ago
Reference: Model rules validation
- History
Total
22
items.
#
Memo
Updater
Updated At
Actions
30
Validation rules issues when using model's attribute as additional parameters
Rodrigo
Oct 31, 2013, 2:13:32 AM
view diff
revert to
29
updated information on file validator
acorncom
Jul 8, 2013, 11:21:29 PM
view diff
revert to
28
fixed code
acy
Jul 2, 2013, 8:47:59 PM
view diff
revert to
27
fix bad code example (a method with no side effect should be static)
François Gannaz
Feb 19, 2013, 8:19:26 AM
view diff
revert to
26
Add another sample for filter method
CedSha
Feb 19, 2013, 6:29:17 AM
view diff
revert to
25
Add filter validation samples
CedSha
Feb 4, 2013, 5:27:51 AM
view diff
revert to
21
Removed a paragraph that was repeating too much & improved scenario example
François Gannaz
Apr 14, 2012, 10:53:16 PM
view diff
revert to
16
Length validation rules 6 and 7 were wrong, corrected. (tooLong = too long, not too short, same for tooShort)
vihiz
Nov 16, 2011, 2:35:42 PM
view diff
revert to
15
Add chinese version url
Darwin Wen
Oct 21, 2011, 6:58:48 AM
view diff
revert to
14
added date example for 1.1.7
huanito
May 4, 2011, 6:26:43 PM
view diff
revert to
13
Annotated the date validator with the 1.1.7 requirement; put it in the proper alphabetical place
Steve Friedl
Mar 30, 2011, 3:57:31 PM
view diff
revert to
12
Added info about date validator
samdark
Mar 13, 2011, 2:38:07 PM
view diff
revert to
11
Added encoding to length
samdark
Jan 18, 2011, 9:56:28 PM
view diff
revert to
10
small but significant typo error: errors=>error
Maurizio Domba Cerin
Dec 6, 2010, 9:58:54 AM
view diff
revert to
9
Cleaned up the example for CTypeValidator; gave link to example for CUniqueValidator
Steve Friedl
Nov 28, 2010, 6:25:05 PM
view diff
revert to
8
Added time rule example (CTypeValidator)
GoorooTech
Nov 21, 2010, 3:23:06 AM
view diff
revert to
7
Spelling issues
mpcabd
Nov 12, 2010, 9:48:27 PM
view diff
revert to
5
fixed typo error
Maurizio Domba Cerin
Oct 27, 2010, 10:42:54 AM
view diff
revert to
4
formatting, tags
wei
Oct 26, 2010, 3:31:37 AM
view diff
revert to
3
Added the built in validators references
krillzip
Nov 29, 2009, 2:41:29 PM
view diff
revert to
2
Added the "Validation rules reference" section, (temporarly saving)
krillzip
Nov 29, 2009, 1:46:12 PM
view diff
revert to
1
initial version
krillzip
Nov 29, 2009, 12:12:17 AM
view diff
revert to
Select exactly two versions for comparison.
Compare Versions
99
0
114
followers
Viewed:
892 152 times
Version:
1.1
Category:
How-tos
Tags:
Form validation
,
model
,
reference
,
validation
,
validation rules
,
validator
Written by:
krillzip
Last updated by:
Rodrigo
Created on:
Nov 29, 2009
Last updated:
11 years ago
Update Article
Revisions
View all history
11 years ago
by
Rodrigo
Validation rules issues when using model...
11 years ago
by
acorncom
updated information on file validator
11 years ago
by
acy
fixed code
11 years ago
by
François Gannaz
fix bad code example (a method with no s...
11 years ago
by
CedSha
Add another sample for filter method
11 years ago
by
CedSha
Add filter validation samples
12 years ago
by
François Gannaz
Removed a paragraph that was repeating t...
13 years ago
by
vihiz
Length validation rules 6 and 7 were wro...
13 years ago
by
Darwin Wen
Add chinese version url
13 years ago
by
huanito
added date example for 1.1.7