Actions process a request and produce data to be displayed in a view.
| property-read |
The callback function to execute for this action |
|---|---|
| property-read |
Additional parameters passed to the constructor. These parameters will be passed to the action's callable. |
__construct(callable $callable)
Additional parameters passed to the constructor are saved in the args property and passed on to $callable.
callableA callback function to execute for this action.
defaultAction() : \HotMelt\Action
perform(\HotMelt\Request $request, \HotMelt\Route $route) : array
arrayThe data generated while processing the request.
performForException(\HotMelt\Request $request, \HotMelt\Route $route, \HotMelt\exception $exception) : array
This method is called for the action of the error route registered with \HotMelt\Route::error().
\HotMelt\exceptionThe exception that this action should handle.
arrayThe data generated while processing the request.
callable : callable
The callback function to execute for this action
callable
args : array
Additional parameters passed to the constructor. These parameters will be passed to the action's callable.
array