示例#1
0
 function validate(&$target, &$bindingResult)
 {
     ValidationUtils::rejectIfEmptyOrWhitespace($bindingResult, "title", "post.field.required");
     ValidationUtils::rejectIfEmptyOrWhitespace($bindingResult, "content", "post.field.required");
 }