public static function createConf($name, $val) { $real_path = NULL; $zk = self::getZk(); if ($zk == null) { return null; } QConfig::setFastGetHost($zk); $node = QconfConfig::$dir . $name; if (!QConfig::Exists($node)) { $real_path = QConfig::Create($node, $val); } else { $real_path = $node; } return $real_path; }