Re: [fw-general] Zend_Form "Sticky Form"

2009-04-24 Thread Matthew Weier O'Phinney
-- J DeBord wrote (on Friday, 24 April 2009, 04:33 PM +0200): > Is there a method available to make Zend_Form sticky in the event it isn't > valid? I came up with the code below, but couldn't determine if there was > something already built in to Zend_FormĀ  for doing this. > > if (!$form->isValid

[fw-general] Zend_Form "Sticky Form"

2009-04-24 Thread J DeBord
Is there a method available to make Zend_Form sticky in the event it isn't valid? I came up with the code below, but couldn't determine if there was something already built in to Zend_Form for doing this. if (!$form->isValid($data)) { $elements = $form->getElements(); foreach ($elements