-- Christof Coetzee <[email protected]> wrote
(on Wednesday, 28 September 2011, 10:53 AM -0700):
> I had a look at the link you provided, but I've used this method before as
> well. The problem with this method is that if you have in excess of 20 huge
> forms (like my situation) it will be a mountain of work to manually type the
> field names etc. in all the view scripts.
> 
> I therefor use DisplayGroups in my form class and in my controller views I
> just echo the DisplayGroup, in my situation proper decorators will be a huge
> benefit to auto render form elements layouts/positioning etc.
> 
> The purpose of form decorators was specifically to speed up development of
> forms, so that the developer does not have to manually create/retype this in
> every view script - IMHO ZF form decorators have failed here, as most people
> complain about how insanely difficult and a waste of time this is.

Funny, I hear the exact opposite equally as often as I hear folks having
problems with them. 

> Again, I would appreciate anyone who can explain to me the exact meaning and
> setup of the decorator options arrays as per my initial post.

Have you read the tutorial in the manual? I mean specifically this one:

    http://framework.zend.com/manual/en/learning.form.decorators.html

That steps you through creation of decorators, layering them, and
creating "composite" decorators. If you're still having trouble after
that, post to the list the *markup* you want to accomplish, and somebody
will likely show you how to accomplish it. 

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

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


Reply via email to