Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 433 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 433 Bytes

NavTree

A php class for rendering flat data as tree navigation HTML.

Usage

  1. Pass it some flat data in the constructor
  2. Call the render function.
include ('NavTree.php');
$navigation = new NavTree($data);
$navigation->render();

See example.php for a full example.

Credits

Original code taken from Stack Overflow