CakeFest 2024: The Official CakePHP Conference

Yaf_Request_Abstract::setModuleName

(Yaf >=1.0.0)

Yaf_Request_Abstract::setModuleName设置模块名

说明

public Yaf_Request_Abstract::setModuleName(string $module, bool $format_name = true): void

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

参数

module

string,module 名,应该是骆驼样式,比如“Index”或“Foo_Bar”

format_name

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

返回值

add a note

User Contributed Notes

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