2008年12月17日星期三

Re: [fw-mvc] Working with Zend_File_Validator from config file

Background to the issue:
The config or the form must be rewritten to give an array as option and not
single parameters.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

----- Original Message -----
From: "Cristian Bichis" <contact@zftutorials.com>
To: <fw-mvc@lists.zend.com>
Sent: Wednesday, December 17, 2008 10:51 AM
Subject: [fw-mvc] Working with Zend_File_Validator from config file


> Hello,
>
> Something has been changed since 1.6.1 in the way file validators work.
>
> Setting a file validator for a form seems to don't work (see also this
> http://framework.zend.com/issues/browse/ZF-5293)
>
> elements.TEMPLATE.options.validators.size.validator = "Size"
> elements.TEMPLATE.options.validators.size.options.min = 0kb
> elements.TEMPLATE.options.validators.size.options.max = 4MB
>
> So how should i set from config file the options for Size validator to
> work fine ?
>
> --
> Best regards,
> Cristian Bichis
> www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com
>
>

没有评论: