Yaf_Request_Abstract::setActionName

(Yaf >=1.0.0)

Yaf_Request_Abstract::setActionName设置 action 名

说明

public Yaf_Request_Abstract::setActionName(string $action, bool $format_name = true): void

set action name to request, this is usually used by custom router to set route result action name.

参数

action

string,action 名,应该是小写的,比如“index”或“foo_bar”

format_name

在 Yaf 3.2.0 中引入,Yaf 默认会将名称格式化为小写样式,如果设置为 false,Yaf 将设置原始名称来请求。

返回值

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top