Validation in extbase using regex -
i want use validation of model properties in extbase via regex , using following syntax:
/** * *@var string $telephone *@validate regularexpression('/^[0-9]+$/') */ $protected $telephone;
but keep getting validation error, irrespective of value of $telephone variable.what doing wrong?
you
/** * * @var string $telephone * */ $protected $telephone;
in case integer values var telephone.
the other way add right validation syntax
@validate $telephone notempty, regularexpression(regularexpression="/^[0-9]+$/")
Comments
Post a Comment