略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Yaf_Route_Static::route

2024-11-15

Yaf_Route_Static::route

(Yaf >=1.0.0)

Yaf_Route_Static::routeRoute a request

说明

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

警告

本函数还未编写文档,仅有参数列表。

参数

request

返回值

总是返回TRUE

范例

示例 #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

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/yaf-route-static.route.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3