Files
Tobias 8651a79716 Update tutorial-core-validators.md (#18348)
The `DefaultValueValidator` works only with closures not with any callable as suggested.
See f8337a15c2/framework/validators/DefaultValueValidator.php (L47)

```
    /**
     * {@inheritdoc}
     */
    public function validateAttribute($model, $attribute)
    {
        if ($this->isEmpty($model->$attribute)) {
            if ($this->value instanceof \Closure) {
                $model->$attribute = call_user_func($this->value, $model, $attribute);
            } else {
                $model->$attribute = $this->value;
            }
        }
    }
```
2020-10-29 11:32:14 +03:00
..
2019-12-13 23:09:11 +03:00
2014-10-21 11:20:19 -04:00
2017-11-03 01:11:09 +01:00
2017-07-12 12:17:37 +03:00
2016-08-25 18:12:55 +03:00

The Definitive Guide to Yii 2.0

This tutorial is released under the Terms of Yii Documentation.

All Rights Reserved.

2014 (c) Yii Software LLC.

Introduction

Getting Started

Application Structure

Handling Requests

Key Concepts

Working with Databases

Getting Data from Users

Displaying Data

Security

Caching

RESTful Web Services

Development Tools

Testing

Special Topics

Widgets

Helpers