Table Decorators on Zend Framework Form

Posted by ulduz114 on Stack Overflow See other posts from Stack Overflow or by ulduz114
Published on 2010-02-24T09:04:14Z Indexed on 2010/03/26 15:03 UTC
Read the original article Hit count: 611

hello

i created a form that it decorates as table form

its my code for decorates

$this->setElementDecorators(array(
            'ViewHelper',
            'Errors'
            array(array('data'=>'HtmlTag'),
            array('tag'=>'td','class'=>'element')),
            array('Label',array('tag'=>'td')),
            array(array('row'=>'HtmlTag'),array('tag'=>'tr')),

    ));

$this->setDecorators(array(
            'FormElements',
            array('HtmlTag',array('tag'=>'table')),
            'Form'
        ));

it works correctly, now i wana errors message decorates too what do i change my code?

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about zend-form