protected function _base($base = null) {
		if ($base === null) {
			$base = preg_replace('/[^\/]+$/', '', $this->env('PHP_SELF'));
		}
		$base = trim(str_replace(["/app/webroot", '/webroot'], '', $base), '/');
		return $base ? '/' . $base : '';
	}
protected function _base($base = null) {
		if ($base === null) {
			$base = preg_replace('/[^\/]+$/', '', $this->env('PHP_SELF'));
		}
		$base = trim(str_replace(["/app/webroot", '/webroot'], '', $base), '/');
		return $base ? '/' . $base : '';
	}
protected function _base ( $ base = null ) { if ( $ base === null ) { $ base = preg_replace ( '/[^\/]+$/' , '' , $ this -> env ( 'PHP_SELF' ) ) ; } $ base = trim ( str_replace ( [ "/app/webroot" , '/webroot' ] , '' , $ base ) , '/' ) ; return $ base ? '/' . $ base : '' ; }
Find the base path of the current request.

@param string $base The base path. If `null`, `'PHP_SELF'` will be used instead.
@return string
Find the base path of the current request .