El jue, 04-03-2010 a las 11:43 +0100, Giorgio Sironi escribió:
> On Thu, Mar 4, 2010 at 10:26 AM, Stefan Sturm
> <[email protected]> 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.
I'll take advantage of this thread and ask:
How do you test if an object is empty or not??
PHP's empty function doc says:
As of PHP 5, objects with no properties are no longer considered empty.
So what is an empty object??
--
Alayn Gortazar
Irontec, Internet y Sistemas sobre GNU/LinuX - http://www.irontec.com
+34 94.404.81.82