Accept GET or POST parameters
...
$e->Actions->mapAction([
"viewUser",
new \Cherrycake\Actions\ActionHtml([
"moduleType" => ACTION_MODULE_TYPE_APP,
"moduleName" => "Users",
"methodName" => "viewUser",
"request" => new \Cherrycake\Actions\Request([
"pathComponents" => [
new \Cherrycake\Actions\RequestPathComponent([
"type" => REQUEST_PATH_COMPONENT_TYPE_FIXED,
"string" => "user"
])
],
"parameters" => [
new \Cherrycake\Actions\RequestParameter([
"type" => REQUEST_PARAMETER_TYPE_GET,
"name" => "userId",
"securityRules" => [
SECURITY_RULE_TYPICAL_ID
]
])
]
])
])
]);
...Last updated