Can you add the view code for displaying the object?

Permalink
Show some people how to display their errors in a real world situation would really help :)

defunct
 
peterrr replied on at Permalink Reply
People can use this in their template file:

foreach($errors as $error){
   echo $error;
}



If they put this in their controller:
if($this->isPost()){
   $val->setData($_POST);
   //here some validation rules
   $errors = $val->getError()->getList();
   $this->set('errors', $errors);
}