Esempio n. 1
0
 function &_tree($datas)
 {
     $this->load->helper('tree');
     $tree = new NodeTree();
     $tree->setTree($datas, 'id', 'parent_id', 'cate_name');
     return $tree;
 }
Esempio n. 2
0
 function &_tree($acategories)
 {
     $this->load->helper('tree');
     $tree = new NodeTree();
     $tree->setTree($acategories, 'id', 'parent_id', 'action_name');
     return $tree;
 }