Get the running application's base dir, usually the root where index.php is being run
public static getApplicationBaseDir ( ) : string | ||
return | string |
/** * 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(); }