How can I check if Zend_Form_Elements has no decorators set
        Posted  
        
            by 
                jiewmeng
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by jiewmeng
        
        
        
        Published on 2010-12-24T14:15:45Z
        Indexed on 
            2010/12/26
            11:53 UTC
        
        
        Read the original article
        Hit count: 337
        
I find that even if I just declare an element like
$this->addElement('textarea', 'txt1');
I find that it already has decorators set
Zend_Debug::dump($this->getElement('txt1')->getDecorators());
I want to test that I didn't set decorators using setDecorators() or using something like
$this->addElement('textarea', 'txt1', array(
    'decorators' => array(...)
));
If I didn't set any decorators then apply default decorators, how can I do that. I want to apply default decorators per element basis, not using Zend_Form#setDisableLoadDefaultDecoraotrs()
© Stack Overflow or respective owner