1

I have a flat array of objects like this
array(obj1, obj2, ob3)
Each object contains a string reference to its own unique name and its parent object which is either also in the array or else null

I want to output these names in the correct hierarchy using the zend htmllist helper.

Using the accepted answer at the following link gets me an associative array with the correct hierarchy:
Convert a series of parent-child relationships into a hierarchical tree?

But I cannot use this in the htmllist helper as there are array keys present like 'children' for example

Community
  • 1
  • 1
Stewart Megaw
  • 299
  • 2
  • 13
  • 1
    Why can you not use this? Please edit to state what the actual problem is and how you've tried to adapt the info in the link provided to work with your htmllist helper – Craig Graham Oct 15 '15 at 12:59

0 Answers0