-- Codiac <[EMAIL PROTECTED]> wrote
(on Tuesday, 19 August 2008, 01:11 PM -0700):
> 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>
You need to use a value that will actually evaluate to a boolean false.
The above will actually be evaulated as the string "false" which
evaluates to true. Try using a zero instead:
<registerInArrayValidator>0</registerInArrayValidator>
--
Matthew Weier O'Phinney
Software Architect | [EMAIL PROTECTED]
Zend Framework | http://framework.zend.com/