-- 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
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
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 :
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
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
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
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
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