©
本文档使用 PHP中文网手册 发布
(Yaf >=1.0.0)
Yaf_Route_Static::route — Route a request
$request
)
本函数还未编写文档,仅有参数列表。
request
总是返回TRUE
Example #1 Yaf_Route_Static::route() example
// 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