JForm::validate
Method to validate form data.
Validation warnings will be pushed into JForm::errors and should be retrieved with JForm::getErrors() when validate returns boolean false.
Signature
public function validate(array
$data,
[string
$group = null] )
Parameters
-
$data
- An array of field values to validate.
-
$group
- The optional dot-separated form group path on which to filter the
Returns
- mixed
- True on sucess.