Collecting form errors to be displayed
You can use array_merge to reduce the array from 2-dim to 1-dim, then implode the array.

$this-&gt;view-&gt;error_message = 
    implode(array_reduce($form-&gt;getMessages(),
                         "array_merge", 
                         array()),
            "&lt;br/&gt;");


http://php.net/manual/en/function.array-merge.php

http://www.php.net/manual/en/function.array-reduce.php