Yii for beginners 2

Comparing #41 with #42

Revision #42 was created by rackycz rackycz on Mar 17, 2022, 10:44:45 AM.

Each validator

Content

[...]
{
$val = $this->$attribute;
$paramA = $params['optionalParamA']??'Not set';
$this->addError($attribute, 'An error text');
}
```

 
 
This code can also be found in the documentation of [CValidator](https://www.yiiframework.com/doc/api/1.1/CValidator)