Hi Peter,
First of all you need to understand that
<?php echo $form ?>
was never meant to replace custom styling. If you want to customize
the structure, CSS classes or other attributes of the generated HTML,
you need to do it manually in the template. After all, this is
template logic, and as such belongs there. Refer to the documentation
about forms for webdesigners for more details:
http://www.symfony-project.org/book/forms/1_2/en/03-Forms-for-web-Designers
Your first question won't be answered by this chapter though. The
answer is, again, to display the error messages in one place manually.
symfony 1.1:
<ul>
<?php foreach ($form->getFormFieldSchema() as $field): ?>
<li><?php echo $field->renderError() ?></li>
<?php endforeach ?>
</ul>
symfony 1.2:
<ul>
<?php foreach ($form as $field): ?>
<li><?php echo $field->renderError() ?></li>
<?php endforeach ?>
</ul>
Bernhard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---