Reply: Core Validators

NOTE: You are posting the message as a 'Guest', you can not edit the message or delete it
Please Log in or Register to skip this step.
X

Topic History of: Core Validators

Max. showing the last 6 posts - (Last post first)

1 year 2 months ago
Core Validators

public function rules()
{
return [
...

Core Validators

Yii provides a set of commonly used core validators, found primarily under the yii\validators namespace. Instead of using lengthy validator class names, you may use aliases to specify the use of these core validators. For example, you can use the alias required to refer to the [[yii\validators\RequiredValidator]] class:

Read more...