2

我收到这个错误

 Array ( [name] => Array ( [notInArray] => The input was not found in the haystack ) [account] => Array ( [notInArray] => The input was not found in the haystack ) ) 

当我在我的表格中做了这样的事情时

   $this->add(array(
        'type' => 'Zend\Form\Element\Select',
        'name' => 'name',
        'options' => array(
            'label' => 'Account Name:',
            'disable_inarray_validator' => true,
            'value_options' => array(
                '0' => 'Select',
            ),

        ),
    ));

所有这些'disable_inarray_validator' => true,所做的就是禁用消息。我仍然无法验证我的表格。禁用Select Feilds后,我检查了表单的其余部分,并且验证正常。

4

0 回答 0