public static getApplicationBaseDir ( ) : string | ||
return | string |
public static function getApplicationBaseDir()
{
return str_replace("\\", "/", pathinfo($_SERVER["SCRIPT_NAME"], PATHINFO_DIRNAME));
}
/** * Return the root dir relative to the Application dir * Use it to include files, or get relative path of file * @return string */ public function getBaseDir() { return Env::getApplicationBaseDir(); }