ci-nested-sets
ci-nested-sets copied to clipboard
Nested Set Library for CodeIgniter
It would be nice to add a path field and implement the generation of the full path to the root element.
why not use something like this to get the ordered tree ? ``` SELECT node.name, (COUNT(parent.name) - 1) AS depth FROM product_category AS node CROSS JOIN product_category AS parent WHERE...
The while loop is looping forever ``` public function getSubTreeAsHTML($nodes, $fields = array()) { if(isset($nodes[0]) && !is_array($nodes[0])) { $nodes = array($nodes); } $retVal = ''; foreach($nodes AS $node) { $tree_handle...
In the attached file how can i move Plastics and Electronics :  for moving any other sub nodes i do this : ``` $cat = $this->nested_set->getNodeFromId($cat_id); if($cat["cat_parent_id"]){ $parent =...