wilariz wrote > you have reason. > I'll explain you my application context: > I'm making ddd design. > I have n layers. in this case only use Application and Presentation > layers: > in my presentation layer I have my controller classe where my action save > I instance form, render and when is post.. I send form->Data() to my nex > class "SomeService" this is in my application layer.. here I instance same > form again and validate $form->isValid() > but my specific case I populate in my presentation later but I didn't in > my application service.. now I don't sure if is ok validate in my app > service... because I should populate my select again.. and if I have > several selects I'll call same amont to database :S I think I'll take a > bad performance.. > > I hope you understand my context.. what do you think about it?
OK simply it won't work beacuase you can't use isValid correctly on the second Form that has not been submitted. From your description the flow you have does not sound good. Is there any way to simplify what you are trying to achieve? ----- Cheers, -- Luke Mierzwa -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Form-element-select-error-tp4656976p4657026.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
