Re: [fw-general] On view helpers & decorators

2009-04-15 Thread Matthew Weier O'Phinney
-- lightflowmark <1...@lightflowinterrupted.com> wrote (on Wednesday, 15 April 2009, 01:18 AM -0700): > I'm having a conceptual difficulty with view helpers & decorators and was > hoping someone could clarify this for me: > > When a form element (e.g. a text input) is rendered, the work of creatin

Re: [fw-general] On view helpers & decorators

2009-04-15 Thread lightflowmark
Are they? They seem to extend Zend_Form_Decorator_Abstract which implements Zend_Form_Decorator_Interface. They certainly *have* a form element (_element) but don't extend them as far as I can tell. The approximate process to render a the markup for a form element is form->render() calls each e

Re: [fw-general] On view helpers & decorators

2009-04-15 Thread keith Pope
2009/4/15 lightflowmark <1...@lightflowinterrupted.com>: > > Maybe I've misunderstood the structure, then.  My understanding was that > Zend_Form_Decorator_* decorated form elements, not that they decorated view > helpers.  Can someone clarify that? I think we were talking about different things :

Re: [fw-general] On view helpers & decorators

2009-04-15 Thread lightflowmark
Maybe I've misunderstood the structure, then. My understanding was that Zend_Form_Decorator_* decorated form elements, not that they decorated view helpers. Can someone clarify that? -- View this message in context: http://www.nabble.com/On-view-helpers---decorators-tp23054740p23055393.html S

Re: [fw-general] On view helpers & decorators

2009-04-15 Thread keith Pope
2009/4/15 lightflowmark <1...@lightflowinterrupted.com>: > > Sure; I understand the decorator pattern.  But in this case, the decorator is > decorating the form element; it's using functionality from the view helper > to do so. > > My question is, why is the decorator using a view helper to provide

Re: [fw-general] On view helpers & decorators

2009-04-15 Thread lightflowmark
Sure; I understand the decorator pattern. But in this case, the decorator is decorating the form element; it's using functionality from the view helper to do so. My question is, why is the decorator using a view helper to provide functionality which (it seems to me) it could do itself? -- View

Re: [fw-general] On view helpers & decorators

2009-04-15 Thread keith Pope
2009/4/15 lightflowmark <1...@lightflowinterrupted.com>: > > I'm having a conceptual difficulty with view helpers & decorators and was > hoping someone could clarify this for me: > > When a form element (e.g. a text input) is rendered, the work of creating > the form element markup (i.e. ) is done

[fw-general] On view helpers & decorators

2009-04-15 Thread lightflowmark
I'm having a conceptual difficulty with view helpers & decorators and was hoping someone could clarify this for me: When a form element (e.g. a text input) is rendered, the work of creating the form element markup (i.e. ) is done by the 'ViewHelper' decorator, which calls a view helper set by the