Newscoop\Form::setSimpleDecorate PHP Method

setSimpleDecorate() public method

public setSimpleDecorate ( )
    public function setSimpleDecorate()
    {
        $htmlTag = new Decorator\HtmlTag(array('tag' => 'div'));
        $label = new Decorator\Label();
        $this->setDisplayGroupDecorators(array(array('FormElements'), $htmlTag));
        $this->setDecorators(array('FormElements', 'Form'));
        $this->setElementDecorators(array('ViewHelper', 'Errors', $label));
        return $this;
    }