Hello i'm using a custom decorator based on this example:

http://framework.zend.com/manual/en/zend.form.decorators.html



However i can't retrieve the errors message in the following function:


    public function buildErrors()
    {

        $element  = $this->getElement();
        $messages = $element->getMessages();
        if (empty($messages)) {
            return '';
        }
        return '<div class="errors">' .
               $element->getView()->formErrors($messages) . '</div>';
    }

$element->getMessages(), returns empty.


Any idea what's wrong?

Thanks in advance

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com


Reply via email to