validation - Yii2: How to use integer only in rules -
validation - Yii2: How to use integer only in rules -
i wondering if there still integer validator in yii2. old 1 yii sadly doesnt work.
'numerical', 'integeronly'=>true
there is..!
[['type', 'media'], 'integer'],
where type
, media
attributes.for more details,use this link.
validation yii frameworks integer yii2
Comments
Post a Comment