A small bug in the advanced validation approach

There is a small bug in the validation approach I described in an earlier post and in the wiki. The following two lines should be outside of the foreach loop:

$this->validationErrors = $errors;
return $errors;

Post a Comment

Required fields are marked *
*
*

%d bloggers like this: