2009/4/15 lightflowmark <[email protected]>: > > 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?
I am not sure if I totally understand your question, but I think that the viewHelper is the base class that is to be decorated, therefore to stick to the pattern you need to create a base class decorator, therefore you get ViewHelperDecorator, the decorators job is then to pass clone/proxy the viewHelpers API. > -- > View this message in context: > http://www.nabble.com/On-view-helpers---decorators-tp23054740p23055118.html > Sent from the Zend Framework mailing list archive at Nabble.com. > > -- ---------------------------------------------------------------------- [MuTe] ----------------------------------------------------------------------
