<?php
/**
 * Created by PhpStorm.
 * User: ruben
 * Date: 3/28/14
 * Time: 1:07 PM
 */

namespace Application\View\Helper\Form\Element;

use Zend\Form\View\Helper\AbstractHelper;

class HasError extends AbstractHelper
{
    public function __invoke(\Zend\Form\Element $element) {
        $error = $this->getView()->formElementErrors($element);
        return empty($error);
    }
} 