sorry when I said: *which calls a recursive function* I meant: which calls a recursive method of the Tree element class that extends Zend_Form_Element
Thank You Daniel Latter 2009/5/1 Daniel Latter <[email protected]> > Hi all, > > I have created a form element that displays a tree structure of categories > along with a checkbox a user can select as a html UL element, this requires > a recursive function. > > The way I have implemented this is to extend Zend_Form_Element and then > overrode the render method which calls a recursive function that eventually > returns the tree as a UL list, with each LI being the category name and > checkbox. > > I was wondering if this is the best way to create such an element? > > Any advice appreciated.. > > Thank You > Daniel Latter >
