A php class for rendering flat data as tree navigation HTML.
- Pass it some flat data in the constructor
- Call the render function.
include ('NavTree.php');
$navigation = new NavTree($data);
$navigation->render();
See example.php for a full example.
Original code taken from Stack Overflow