Making pages"; // Creates 3^5 pages $this->makePages(3, 5); } protected function makePages($count, $depth, $prefix = "", $parentID = 0) { for ($i=1;$i<=$count;$i++) { $page = new Page(); $page->ParentID = $parentID; $page->Title = "Test page $prefix$i"; $page->write(); $page->publish('Stage', 'Live'); echo "