ThinkPHP5


think\Url
library\think\Url.php at line 19

Class Url

Url

public class Url


Method Summary
static string

build(string url, string|array vars, string|bool suffix, boolean|string domain)

URL生成 支持路由反射

protected static void

parseUrl(mixed url, mixed domain)

protected static void

parseDomain(mixed url, mixed domain)

protected static void

parseSuffix(mixed suffix)

static void

getRuleUrl(mixed rule, mixed vars)

static void

root(mixed root)

Method Detail

library\think\Url.php at line 32

build

public static string build(string url, string|array vars, string|bool suffix, boolean|string domain)

URL生成 支持路由反射

Parameters:
url - 路由地址
vars - 参数(支持数组和字符串)a=val&b=val2... ['a'=>'val1', 'b'=>'val2']
suffix - 伪静态后缀,默认为true表示获取配置值
domain - 是否显示域名 或者直接传入域名

library\think\Url.php at line 160

parseUrl

protected static void parseUrl(mixed url, mixed domain)

library\think\Url.php at line 201

parseDomain

protected static void parseDomain(mixed url, mixed domain)

library\think\Url.php at line 249

parseSuffix

protected static void parseSuffix(mixed suffix)

library\think\Url.php at line 261

getRuleUrl

public static void getRuleUrl(mixed rule, mixed vars)

library\think\Url.php at line 288

root

public static void root(mixed root)

ThinkPHP5