Injecting error messages into Symfony 1.1 Forms
Symfony 1.1 does a great job handling forms and form validation but say you have a few external forces checking the validity of the user submitted data, such as Paypal. Paypal would love to return it’s own error messages (thank you very much!) and tie it to a particular form field (say, the credit_card field).
Place this method into symfony_project/lib/form/BaseFormPropel.class.php
And use it like so:
You can find more of my Symfony snippets on GitHub.