コード例 #1
0
ファイル: functions.php プロジェクト: rhymix/rhymix
/**
 * Convert a server-side path to a URL.
 * 
 * This function is an alias to Rhymix\Framework\URL::fromServerPath().
 * It returns false if the path cannot be converted.
 * 
 * @param string $path
 * @return string|false
 */
function path2url($path)
{
    return Rhymix\Framework\URL::fromServerPath($path);
}