首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

Yaf_Route_Static::route

(Yaf >=1.0.0)

Yaf_Route_Static :: route - 路由请求

描述

代码语言:javascript
复制
public bool Yaf_Route_Static::route ( Yaf_Request_Abstract $request )

警告

此功能目前没有记录; 只有它的参数列表可用。

参数

request

返回值

always be TRUE

例子

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

代码语言:javascript
复制
// 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

扩展内容

  • Yaf_Route_Supervar :: route() - 路径目的
  • Yaf_Route_Simple :: route() - 路由请求
  • Yaf_Route_Regex :: route() - 路由目的
  • Yaf_Route_Rewrite :: route() - 路由目的
  • Yaf_Route_Map :: route() - 路由目的

← Yaf_Route_Static::match

Yaf_Route_Supervar →

扫码关注腾讯云开发者

领取腾讯云代金券