[eluser]kev[/eluser]
Ok I think i'm finally close to this !!
Check my code below
Code:
$tree = new Category();
$tree->select_root(1);
$tree->get_root();
$tree->get_by_id(5); // The id of the node i want to use as parent
// Here I assign the child passing the $tree object as a paramter to the new_first_child() method
$child = new Category();
$child->title = 'First Sub sub Level';
$child->new_first_child($tree);
and this produce the result below :
Code:
First level
First Sub Level
First Sub sub Level
Am I correct with this code?