In my form\'s model, I have a custom validation function for a field defined in this way
class SignupForm extends Model { public function rules() {
Are you sure the first parameter of addError shouldn't be like this
addError
$this->addError(**'attribute'**, Yii::t('user', 'You entered an invalid date format.'));