W3cubDocs

/PHP

Yaf_Request_Abstract::setModuleName

(Yaf >=1.0.0)

Yaf_Request_Abstract::setModuleNameSet module name

Description

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.

Parameters

module

string module name, it should be in camel style, like "Index" or "Foo_Bar"

format_name

this is introduced in Yaf 3.2.0, by default Yaf will format the name into camel mode, if this is set to false , Yaf will set the original name to request.

Return Values

© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/yaf-request-abstract.setmodulename.php