Hi all,
I ran into trouble when trying to configure a form select element and set
the InArray validator registerinarrayvalidator configuration key. Here's my
setup, can someone verify if it's correct? Is the registerInArrayValidator
configuration set properly? I get an error ('nl' was not found in the
haystack) when validating the form with the key set to false.
<language>
<type>select</type>
<name>language</name>
<options>
<required>true</required>
<label>Language</label>
<registerInArrayValidator>false</registerInArrayValidator>
<validators>
<alpha>
<validator>Alpha</validator>
</alpha>
<strlen>
<validator>StringLength</validator>
<options>
<min>2</min>
<max>2</max>
</options>
</strlen>
</validators>
<decorators>
<element>
<decorator>ViewHelper</decorator>
<options>
<helper>FormLanguageSelect</helper>
</options>
</element>
<htmltag>
<decorator>HtmlTag</decorator>
</htmltag>
<label>
<decorator>LabelErrorComposite</decorator>
<options>
<tag>dt</tag>
</options>
</label>
</decorators>
</options>
</language>
--
View this message in context:
http://www.nabble.com/Zend_form%2C-InArray-Validator-configuration-question.-tp19057735p19057735.html
Sent from the Zend Framework mailing list archive at Nabble.com.
