Actualy, you validate filtered values in a zend_form. I encountered stefan's problem when using a custom filter to change a date input (text input with some funky js and css) from a form into a zend_date and setting the field to be required. It appear to not be the correct way to do so.
Now, I just validate scalars before I change them into objects. Ludwig From: Giorgio Sironi Sent: Thursday, March 04, 2010 11:43 AM To: Stefan Sturm Cc: fw-general@lists.zend.com Subject: Re: [fw-general] Zend_Validate_NotEmpty and Object On Thu, Mar 4, 2010 at 10:26 AM, Stefan Sturm <stefan.s.st...@googlemail.com> wrote: Hello, when I test a variable containing an Object with Zend_Validate_NotEmpty. I get this error: Invalid type given, value should be float, string, array, boolean or integer I guess it has to do with the way it is used in Zend_Form... usually you pass scalar values in a form. -- Giorgio Sironi Piccolo Principe & Web Engineer http://giorgiosironi.blogspot.com http://twitter.com/giorgiosironi