예제 #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);
}