/** * Locate the relative path to the current directory and save it */ static function locateRelativePath() { $dir = './'; while (!is_dir($dir . '/app')) { $dir .= '../'; } self::$relative_path = realpath($dir) . '/'; }