I raised this a few weeks ago. IMHO, it was a real bad mistake removing that functionality from $request
On 9 Dec 2008, at 13:53, François CONSTANT wrote: > > Hi, > > I'm looking for the exact same thing, for the 1.2 though... > > regards, > > On Oct 27, 10:09 am, kayoone <[EMAIL PROTECTED]> wrote: >> Hi there, >> >> i have recently started playing around with symfony 1.1 for a new >> project and really like it. I even like the new form system quite >> alot. >> However, i ran into a problem where i dont know how to solve it in a >> good way... >> >> In my older symfony 1.0 applications i used to have an area where all >> the errors where displayed, no matter if they came from a form or the >> model or an ajax request...the validators in 1.0 added the errors to >> the Request Object, in my models i could ad errors to the request >> object myself, when for example creation of a db entry failed and a >> rollback was done. >> In my layout i then called $sf_request->getErrors() and displayed all >> the error messages there are. >> >> However in symfony 1.1, things are not that easy. getErrors() and >> setError() are dreprecated and form errors now belong to the form >> object and i dont see a simple way to get other system errors in >> there, which wouldnt be good design anyway since they sometimes are >> not related to a form. >> >> What i could do is get the erros from the form and assign them to a >> template variable and let my model methods return errors too, to also >> assign them to the template and then displaying all the errors at >> once. That however, would require to write a method that does this >> process and call it in every action which is not the solution i have >> in mind. >> >> So how do you do something like that? In 1.0 the setError getErrors() >> methods were perfect for that, i even could display ajax errors in >> the >> same error area but now this seems to be alot more complicated. >> >> thx in advance > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
