core/Route/Url.php
public function makeUrl( $path = '', array $query = [], bool $context = false, bool $full = null ): string
	{
		if( is_null($full) )
		{
			$url = $this->base;
		}
		else if( $full )
		{
			$url = $this->getPrefix();
		}
		else
		{
			$url = $this->isBasePrefix() ? $this->base_prefix : "/";
		}

		if( is_array($path) )
		{
			$path = implode('/', $path);
		}
		else if( strlen($path) && $path[0] === "/" )
		{
			$path = substr($path, 1);
		}

		if( $context && $this->isContext() )
		{
			if( strlen($path) )
			{
				$path = substr($this->context, 1) . $path;
			}
			else
			{
				$path = trim($this->context, "/");
			}
		}

		return $this->getModeUrl($url, $path, $query);
	}
public function makeUrl( $path = '', array $query = [], bool $context = false, bool $full = null ): string
	{
		if( is_null($full) )
		{
			$url = $this->base;
		}
		else if( $full )
		{
			$url = $this->getPrefix();
		}
		else
		{
			$url = $this->isBasePrefix() ? $this->base_prefix : "/";
		}

		if( is_array($path) )
		{
			$path = implode('/', $path);
		}
		else if( strlen($path) && $path[0] === "/" )
		{
			$path = substr($path, 1);
		}

		if( $context && $this->isContext() )
		{
			if( strlen($path) )
			{
				$path = substr($this->context, 1) . $path;
			}
			else
			{
				$path = trim($this->context, "/");
			}
		}

		return $this->getModeUrl($url, $path, $query);
	}
public function makeUrl ( $ path = '' , array $ query = [ ] , bool $ context = false , bool $ full = null ) : string { if ( is_null ( $ full ) ) { $ url = $ this -> base ; } else if ( $ full ) { $ url = $ this -> getPrefix ( ) ; } else { $ url = $ this -> isBasePrefix ( ) ? $ this -> base_prefix : "/" ; } if ( is_array ( $ path ) ) { $ path = implode ( '/' , $ path ) ; } else if ( strlen ( $ path ) && $ path [ 0 ] === "/" ) { $ path = substr ( $ path , 1 ) ; } if ( $ context && $ this -> isContext ( ) ) { if ( strlen ( $ path ) ) { $ path = substr ( $ this -> context , 1 ) . $ path ; } else { $ path = trim ( $ this -> context , "/" ) ; } } return $ this -> getModeUrl ( $ url , $ path , $ query ) ; }
Get url string

@param string $path
@param array $query
@param bool $context
@param bool|null $full
@return string
Get url string