2024 年日本 PHP 研討會

Yaf_Route_Static::route

(Yaf >=1.0.0)

Yaf_Route_Static::route路由請求

說明

public Yaf_Route_Static::route(Yaf_Request_Abstract $request): bool

警告

此函數目前沒有說明文件;僅提供其參數列表。

參數

request

返回值

永遠是 true

範例

範例 #1 Yaf_Route_Static::route() 範例

// assuming there is only one module defined:Index
Request: http://yourdomain.com/a/b
=> module = index, controller=a, action=b

//assuming ap.action_prefer = On
Request: http://yourdomain.com/b
=> module = default(index), controller = default(index), action = b

//assuming ap.action_prefer = Off
Request: http://yourdomain.com/b
=> module = default(index), controller = b, action = default(index)


Request: http://yourdomain.com/a/b/foo/bar/test/a/id/4
=> module = default(index), controller = a, action = b, request parameters: foo = bar, test = a, id = 4

參見

新增註解

使用者提供的註解

此頁面沒有使用者提供的註解。
To Top