$session→error()
Queue an error to appear on the next pageview
Usage
// basic usage
$session->error(string $text);
// usage with all arguments
$session->error(string $text, int $flags = 0);Arguments
| Name | Type(s) | Description |
|---|---|---|
$text | string | Error to queue |
$flags (optional) | int | See Notice::flags |
Return value
$thisObject instance it was called from (method supports fluent interface).
$session methods and properties
API reference based on ProcessWire core version 3.0.252