0

Respective All! Does anybody know method that retrieves me a MPTT tree as hierarchical array?

Like follows:

array ("1"=> array( "10"=> array("100"), "11" => array("110"=> array("1110") ) ) )

Unfortunately, ORM::Factory('Tree1')->fulltree()->as_array() can't do that :-(

Any help would be very appreciated!

Andrew
  • 57
  • 1
  • 8
  • Can you post the db schema you use for this? Tree traversal shouldn't be too diffcult - what have you tried? – kero Jul 03 '15 at 00:02
  • What I need is JSON-fromatted ORM-MPTT output. And formatted with strong accordance to tree hierarchy – Andrew Jul 07 '15 at 05:54

0 Answers0