HTML_QuickForm2: Array renderer 'errors' does not contain form errors

From: Date: Fri, 09 Jul 2010 09:11:18 +0000
Subject: HTML_QuickForm2: Array renderer 'errors' does not contain form errors
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-30648@lists.php.net to get a copy of this message
Hi all, I am using HTML_QuickForm2_Renderer_Array with group_errors enabled. Unfortunately, the 'errors' field in the array I get from toArray() does not contain form errors, only element errors. Is that a bug or expected behavior? Example: > $form = new HTML_QuickForm2(..); > $user = $form->addElement(..); > $user->addRule(..); > $form->addRule(..) > $renderer = HTML_QuickForm2_Renderer::factory('array'); > $ar = $renderer->toArray(); 1) $ar['errors'] contains the user error 2) $ar['errors'] does not contain the form error -- Regards/Mit freundlichen Grüßen Christian Weiske -=≡ Geeking around in the name of science since 1982 ≡=-

Attachment: [application/pgp-signature] signature.asc
« previous php.pear.general (#30648) next »