Matthew Weier O'Phinney-3 wrote:
> 
> Two words: sub forms. addSubForm() takes *either* a Zend_Form or
> Zend_Form_SubForm. :) instance..
> 

Of course simple now!

Out of interest when you combine the form in the model how to you handle
feedback to the user / catching of a result in the application?

I can't decide whether to have my model throw exceptions or return a boolean
and display an overall message based on that result.

I see you use something along the lines of:

if (!$form->isValid($data)) {
       return false;
}

Which you then pick up and redirect as appropriate, I suppose would allow my
controller to pick up the result and send a form incomplete message to the
stack.

-----
Simon

http://www.ajb007.co.uk/
-- 
View this message in context: 
http://www.nabble.com/Merge-Zend_Forms-tp21020067p21033878.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to