src/Foundation/Application.php
/**
	 * Returns the base directory of the application relative to the website's document root.
	 * For example, if the application is installed in a subdirectory, the base directory will be the full path of that
	 * subdirectory.
	 *
	 * This always begins with a '/'.
	 *
	 * @return string
	 */
Returns the base directory of the application relative to the website's document root.
For example, if the application is installed in a subdirectory, the base directory will be the full path of that
subdirectory.

This always begins with a '/'.

@return string
Returns the base directory of the application relative to the website ' s document root . For example if the application is installed in a subdirectory the base directory will be the full path of that subdirectory . This always begins with a ' / ' . @return string
public static function basedir() {
		$directory = trim($_SERVER['SUBDIRECTORY'], '/');
		$directory = str_replace('\\', '/', $directory);
		return '/' . $directory;
	}
public static function basedir ( ) { $ directory = trim ( $ _SERVER [ 'SUBDIRECTORY' ] , '/' ) ; $ directory = str_replace ( '\\' , '/' , $ directory ) ; return '/' . $ directory ; }
Returns the base directory of the application relative to the website's document root.
Returns the base directory of the application relative to the website ' s document root .