在Haystack ZF2中找不到输入

时间:2013-07-08 16:53:59

标签: php zend-framework2

我收到此错误

 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'=>是的,做的是禁用邮件。我仍然无法验证我的表格。我在禁用选择费用后检查了表单的其余部分,并且验证正常。

0 个答案:

没有答案