Wiki

Articles tagged with "validator", sorted by ratingX
Displaying 1-3 of 3 result(s).

Reference: Model rules validation

Created 5 years ago by krillzipHow-tos7 comments – viewed 573,784 times – ( +124 ) – version 1.1
This is a reference to be used for Model rule validation and is compiled from the Yii documentation and code. The purpose is to have all the information gathered in one place instead of scattered. This reference is not an intro. See The Definitive Guide to Yii, Declaring Validation Rules for a tutorial.

Create your own Validation Rule

Created 4 years ago by nickcvHow-tos13 comments – viewed 144,200 times – ( +75 / -3 ) – version 1.1
Some times the core validation rules provided by Yii won't satisfy all your needs, so you'll need to create your very own validation rule.

Add model validator in Controller

Created 6 months ago by Kostas Apazidis (KonApaz)Tips4 comments – viewed 4,752 times – ( +1 / -1 ) – version 1.1
There are cases that model validators should be depended by controller/action and you couldn't manipulate on the model class or using scenarios in easy way