/** * Set path of system root directory and another directory * application, config, output log, document root, library at the same time set * * @param string $path * @return void */ public static function setSystemRoot($path) { self::$_systemDir = rtrim($path, '/'); self::setAppDirectory(self::$_systemDir . '/app'); self::setConfigDirectory(self::$_systemDir . '/configs'); self::setLogDirectory(self::$_systemDir . '/logs'); self::setHtdocsDirectory(self::$_systemDir . '/htdocs'); self::setLibraryDirectory(self::$_systemDir . '/library'); self::setDataDirectory(self::$_systemDir . '/data'); }