Zend Framework 2 - Integer Form Validation

前端 未结 3 1229
忘掉有多难
忘掉有多难 2021-02-10 00:50

I\'ve got the following problem. I wrote (based on the tutorial) a form validation. The text fields work just fine but the integer field behave odd.

This is my validator

3条回答
  •  迷失自我
    2021-02-10 01:38

     array(
                            'name' => 'not_empty',
                        ),
                        array(
                            'name' => 'Digits',
                        ), array(
                            'name' => 'Between',
                            'options' => array(
                                'min' => 0,
                                'max' => 1,
                            ),
                        ),
    

提交回复
热议问题