Hi.

Zend_Form_Decorator_Errors in render method line #53 do:

$errors = $element->getMessages();
        if (empty($errors)) {
            return $content;
        }

why is presence of an error done this way and not 

        if (!$element->hasErrors()) {
            return $content;
        }

I'm asking because I'm implementing my custom error decorator.

Regards,
Saša Stamenkovič.
-- 
View this message in context: 
http://n4.nabble.com/Zend-Form-Decorator-Errors-question-about-imlpementation-tp962921p962921.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to