Error helper in external form

Permalink 1 user found helpful
Kind of a newb question, but how does one go about putting together an external form that displays validation errors, i.e. invalid email address, incomplete field, etc. I'm referencing the c5 login and register pages which use:
$e = Loader::helper('validation/error');
$e->add(t('Some kind of error message'));

But what do I do to make the errors display on the page? I can't figure out where or how to call up all those $e's.

Benji
 
Benji replied on at Permalink Reply
Benji
Something like this worked fine:
$e = $e->getList();
echo '<p>Please correct the following errors:</p><ul>';
foreach ($e as $key => $value) {
   echo '<li>' . $value . '</li>';
}
echo '</ul>';

The error handler actually has an "output" function that does the same thing, except that it gives the <ul> a class of "ccm-error".