-- Taco Jung <[EMAIL PROTECTED]> wrote
(on Wednesday, 20 August 2008, 07:29 AM +0200):
> Ah, that would explain it. But it's not consistent with the other
> options like required=false.

It _is_ consistent with how configuration works, however. Zend_Config
delivers strings, basically, unless you use the Array adapter with it.


> On Wed, Aug 20, 2008 at 5:15 AM, Matthew Weier O'Phinney <[EMAIL PROTECTED]>
> wrote:
> 
>     -- 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/
> 
> 

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to