i use this in my Form:
$this->add(array(
\'type\' => \'Zend\\Form\\Element\\Select\',
\'name\' => \'county\',
\'registerInAr
In https://github.com/zendframework/zf2/blob/master/library/Zend/Form/Element/Select.php
there is an option $disableInArrayValidator = false
; and the corresponding method here
In ZF1, this is what works:
// using the element instance:
$element->setRegisterInArrayValidator(false);
// or a configuration key as part of the options array:
'registerInArrayValidator' => false
// or
element.options.registerInArrayValidator = false
Add the disable_inarray_validator to the options:
$this->add(array(
...
'options' => array(
'disable_inarray_validator' => true,
'label' => 'county',
),
));