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. <INPUT TYPE=text ...>) is done by the 'ViewHelper' decorator, which calls a view helper set by the element itself (in this case, the FormText view helper). Why functionality to create the markup in a view helper, rather than have a 'FormText' decorator which returns the form element markup directly? Why is the decorator acting as a wrapper for the view helper? Any insight appreciated, I'm trying to do something very similar and would like to understand the reasoning behind this design. Cheers, Mark -- View this message in context: http://www.nabble.com/On-view-helpers---decorators-tp23054740p23054740.html Sent from the Zend Framework mailing list archive at Nabble.com.