Moving Nodes

When moving Nodes:

  1. The source path must exist
  2. The destination path must be an absolute path to the parent node of the new location
<?php 
$session->move("pcr:root/users/regular/jsmith", 
               "pcr:root/users/admin");

$node=$session->getItem("pcr:root/users/admin/jsmith")->toNode();

echo $node->getPath(); //outputs pcr:root/users/admin/jsmith
?>