diamond_krnl
pure-php
обхожусь мальнеким view-хелпером:
"шаблон" дерева наследуемый, от нижних уровней.
конечно получается "венегрет", но хватает в 80% случаев и работает достаточно быстро.
PHP:
<?php
$template = array();
$template[0]['prefix'] = "<ol>\n";
$template[0]['normal'] = "<li><a href=\"'.htmlspecialchars(\$fullpath).'\">'.htmlspecialchars(\$title).'</a></li>\n";
$template[0]['active'] = "<li><a href=\"'.htmlspecialchars(\$fullpath).'\" class=\"a\">'.htmlspecialchars(\$title).'</a></li>\n";
$template[0]['suffix'] = "</ol>\n";
$template[1]['prefix'] = "<ul>\n";
$template[1]['normal'] = "<li><a href=\"'.htmlspecialchars(\$fullpath).'\">'.htmlspecialchars(\$title).'</a></li>\n";
$template[1]['active'] = "<li><a href=\"'.htmlspecialchars(\$fullpath).'\" class=\"a\">'.htmlspecialchars(\$title).'</a></li>\n";
$template[1]['suffix'] = "</ul>\n";
echo $this->treeDraw($this->treeData, $template);
?>
конечно получается "венегрет", но хватает в 80% случаев и работает достаточно быстро.