Basic
Less than 1 minute
Basic
Properties
stream
protected bool $stream
Methods
initialize
public initialize({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$request | Request |
runAction
Run an action method on a controller.
public runAction({Array})
This is the main controller action decision code and is where the controller will decide what to actually execute and whether to cache the response on not.
Parameters
Parameter | Type | Description |
---|---|---|
$actionName | string | |
$actionArgs | array | The arguments to pass to the action |
$namedActionArgs | bool |
stream
Sends a stream response to the client.
public stream({Array})
This method sends a stream response to the client, allowing the client to download the response as a file. It sets the necessary headers for the response and flushes the output buffer to ensure the response is sent immediately.
Parameters
Parameter | Type | Description |
---|---|---|
$value | string | The value to be streamed. If an array is provided, it will be |
converted to a JSON string before streaming. |
init
protected init({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$request | Request |
initResponse
protected initResponse({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$request | Request |
Generated by Hazaar API Doc Generator