略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Yaf_Request_Abstract::setActionName

2025-02-27

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 将设置原始名称来请求。

返回值

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

官方地址:https://www.php.net/manual/en/yaf-request-abstract.setactionname.php

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