Matthew Weier O'Phinney-3 wrote:
> 
> SubForms are namespaced -- so you can do the following:
> 
>     $errors = $form->getMessages();
> 
> and look through the keys to that to see which forms threw errors. :)
> 

Yup, I've tried something like this:

-----
$valid = $form->isValid($data);

if (!$valid) {

    $errors = $form->getErrors();
    $Ermsgs = $form->getErrorMessages();
    $msgs   = $form->getMessages();

    echo "<pre>";

    print_r($errors);
    print_r($Ermsgs);
    print_r($msgs);

    echo "</pre>";

}
-----
To try and troubleshoot and understand what I'm getting back.

All I get is the integer "1" for each of those values, which is what's
confusing me.  I would have expected an array of subForm names or something
with each error message.

I wasn't sure what I might be doing or thinking wrong.
-- 
View this message in context: 
http://www.nabble.com/Zend_Form---Multipage-SubForm-and-isValid-tp20119685p20130843.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to