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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -