Actions methods
Returns the action with the given actionName.
actionName
String
Initializes the module, loads the dependent module classes and calls the
mapActions
method on all available modules using Engine::callMethodOnAllModules.Checks if the action with the given actionName has been mapped.
actionName
String
Returns: Boolean
Maps an action for a module.
actionName
String
$e->Actions->mapAction(
"home",
new \Cherrycake\Action([
"moduleType" => \Cherrycake\ACTION_MODULE_TYPE_APP,
"moduleName" => "Home",
"methodName" => "homePage",
"request" => new \Cherrycake\Request([
"pathComponents" => false,
"parameters" => false
])
]);
);
Parses the received query to find the corresponding action and runs it
Last modified 2yr ago