```
if(count($this->form->email->getMessages()) > 0)
                        {
                            $e = '<ul>';
                                $m = $this->form->email->getMessages();
                                foreach($m as $me)
                                {
                                    $e .= '<li>';
                                        $e .= $me;
                                    $e .= '</li>';
                                }
                            $e .= '</ul>';                          
                            echo $e;
                            unset($e);
                            unset($m);
                        }

```

I'm currenly passing form object to VIEW and echo every elemen manually.

But when comes to errors, it takes a lot of code to write.

Could someone tell, how to output errors for each element without such amount of code?

Thanks!

Here is the picture of all decorators before the output:

![alt text](https://i192.photobucket.com/albums/z228/Somebi/form-decorators.jpg)