zend-form-select

How to fix 'The input was not found in the haystack' in ZF2?

限于喜欢 提交于 2021-01-29 08:38:48
问题 I have an issue in my code which I can't resolve. I'm using Zend framework 2.4 and I wrote a form but as soon as I validate it, I got the error The input was not found in the haystack . This are the 3 input where I got the error: $this->add(array( 'name' => 'ACTIVITE1', 'type' => 'Zend\Form\Element\Select', 'required' => 'required', 'options' => array( 'value_options' => array( 'Choisir l\'activité' ), 'disable_inarray_validator' => false, ), 'attributes' => array( 'class' => 'form-control',

Zend Framework addMultiOption adding custom parameters like “rel” for options

放肆的年华 提交于 2019-12-13 18:34:52
问题 Im using Zend, and we have a form thats put together through a series of functions. One in particular addMultiOption, of which is being pulled in from a DB (from where I dunno, cause if I could alter the query, that'd be much easier and better all around. Anyway that said I need to add a "rel" attribute to every option /option so I can preform a task on the option via jquery when that option is selected, its not all options but some, options that don't have extra functionality would have a