[eluser]ascotan[/eluser]
If your using smarty you need to capture the validation error into smarty for use somewhere else:
Code:
{capture assign=validation_errors}{php}echo validation_errors();{/php}{/capture}
You can use {$validation_errors} anywhere you want.
I however use a little bit different system.
I capture the form errors individually:
Code:
{capture assign=ship_firstname_error}{php}echo form_error('ship_firstname');{/php}{/capture}
And then use smarty for templating based on wether an error was detected:
Code:
<div class="warn">
{$ship_firstname_error}
.....
</div>
<div class="{if $ship_firstname_error}form_error{/if}" id="form_ship_firstname">
......
</div>