Esempio n. 1
0
 public static function printTree()
 {
     $menu = new self();
     echo '<pre>' . $menu->buildMenuHtml($menu->buildItems(Builder::read('pages'))) . '</pre>';
     echo '<pre>' . var_export($menu->buildMenuHierarchy($menu->buildItems(Builder::read('pages'))), true) . '</pre>';
 }