If you are an old school like me (before Symfony 1.1), try
<?php if ($sf_request->hasErrors()): ?>
<p>Please correct the following errors and try again:</p>
<ul>
<?php foreach($sf_request->getErrors() as $name => $error): ?>
<li><?php echo $error ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
sjobe source
share