Re: [symfony-users] Error message format

2009-12-30 Thread Sid Bachtiar
I just tried it and it works really well! Thank you! :) On Wed, Dec 30, 2009 at 10:35 PM, Alexandru-Emil Lupu wrote: > in my Form class object i ave added : > > > >  public function getErrors($v = '') >  { >    foreach ($this->getErrorSchema() as $field=>$error ) >    { >      foreach ($error->ge

Re: [symfony-users] Error message format

2009-12-30 Thread Alexandru-Emil Lupu
in my Form class object i ave added : public function getErrors($v = '') { foreach ($this->getErrorSchema() as $field=>$error ) { foreach ($error->getErrors() as $currentError) { $v .= ''.sprintf("In the "%s" tab you have an error: %s", $field , $currentError->getMessage

Re: [symfony-users] Error message format

2009-12-30 Thread Alexandru-Emil Lupu
I have done something like that. I will post my solution later today, as i haven't yet start my computer Alecs sent via htc magic On Dec 30, 2009 1:37 AM, "Sid Bachtiar" wrote: Hi all, I embedded a form inside another form, and I try to print errors (of all the forms combined) like this in the

[symfony-users] Error message format

2009-12-29 Thread Sid Bachtiar
Hi all, I embedded a form inside another form, and I try to print errors (of all the forms combined) like this in the template: getErrorSchema()->getErrors() as $error): ?> *getMessage(); ?> It is able to print all the errors as expected