Hi, 
try also this solution:

protected $_formElementDecorators = array(  
    'ViewHelper',  
    array( 'Errors', array('escape' => false, 'placement' => 'append' ) ),  
    array( array( 'containerDD' => 'HtmlTag' ), array('tag' => 'dd') ),  
    array( 'Label', array('tag' => 'dt', 'escape' => false ) ),  
    array( array('row' => 'HtmlTag'), array('tag' => 'dl' ) ),  
); 

It's the same solution of Wil Revehl, but adds error management.
The error tag, if any, will be rendered right after the "input" html tag.

You must call 
$this->setElementDecorators($this->_formElementDecorators); 
after you defined all your elements.

The properties of the Errors decorator ( array('escape' => false,
'placement' => 'append' ) ) are there just to let you know they exists.

Hope it helps.

Bye




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/desperately-need-help-with-decorators-tp4111122p4111325.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to