James,

thank you for the assistance - like David said Zend Form has many other
advantages and I guess each developer should figure out for himself which
implementation of decorators suits him best.

I personally would have designed the ZF decorators to be very lightweight
and use some kind of pattern, maybe something like this:

$form->setViewPatternDefault('<div>{label}</div><div>{field}<br
/>{description}</div>);
//or
$form->setViewPatternDefault('/path/to/form/views/rigid.phtml');

//and then if a specific field needed a different pattern

$form->getElement('dateCombo')
       ->setViewPattern('<div>{label}<br />{field}</div>');

One can currently emulate this with Decorator View Scripts, although still a
bit heavy, but gives you the most flexibility over form views.

--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Over-engineered-Zend-Form-Decorators-help-tp3850650p3857435.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