Hi all
What is the best way of debugging Forms with the form framework?
Im used to print_r()'ing objects, but with the nesting in sfForm
framework this is a bad idea ..
The problem I have is that I have a form that has a global error -
"There is an error with your form", but none of the fields are
highlighted.
Currently I have to write a debug function that does something like
this:
foreach ($form -> getErrorSchema() -> getErrors() as $error)
{
echo $error -> getMessage();
}
It would be cool if the errors were displayed in the web-debug
toolbar, would that be possible?
--
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.