Difference between #41 and #42 of
Yii for beginners 2

Revision #42 has been created by rackycz on Mar 17, 2022, 10:44:45 AM with the memo:

Each validator
« previous (#41) next (#43) »

Changes

Title unchanged

Yii for beginners 2

Category unchanged

Tutorials

Yii version unchanged

1.1

Tags unchanged

Yii,mvc,tutorial,beginner

Content changed

[...]
{
$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)
15 0
21 followers
Viewed: 85 533 times
Version: 1.1
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Mar 5, 2013
Last updated: 2 years ago
Update Article

Revisions

View all history