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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

ruby on rails - Devise Logout Error in RoR -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -