2008年12月17日星期三

[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

没有评论: