mam klase a w niej kilka metod, wywoliue jedna i chce aby ona wywolala druga i mam blad ze taka metoda jest niezdefiniowana, a jest

function createProject ($name, $autor, $date, $preproductionCatalogs, $productionCatalogs, $postproductionCatalogs) { include_once('../../settings/toolbox/database.php'); createDirectory($name); $query = "INSERT INTO projectProperties (`label`, `autor`, `date`, `preproductionCatalogs`, `productionCatalogs`, `postproductionCatalogs`) VALUES ('$name', '$autor', '$date', '$preproductionCatalogs', '$productionCatalogs', '$postproductionCatalogs')"; return $execute; } function createDirectory ($name) { include_once('../../settings/toolbox/FTP.php'); $ftpConnection = ftp_connect($server, 21); ftp_login($ftpConnection, $user, $password); if (@ftp_mkdir($ftpConnection, '/www/'.$name)) { $success = true; } else { $success = false; } ftp_close($ftpConnection); return $success; }
blad :
Fatal error: Call to undefined function createDirectory() in /home/virtual/film2/www/toolbox/assets/serverside/amfphp/services/toolbox/ToolBoxService.php on line 40
fajne nie?
pozdrawiam