/** * init the config * * @return void */ public static function init() { if (self::$baseDir === NULL) { $rootDir = defined('YPP_DIR_CONF') ? YPP_DIR_CONF : './'; self::$baseDir = rtrim($rootDir, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; } }