$procache→consoleError()
Record error to javascript console (console.error)
JS console errors will only appear if in PW debug mode, ProCache is in debug mode, or if current user is a superuser.
Usage
// basic usage
$array = $procache->consoleError($a);
// usage with all arguments
$array = $procache->consoleError($a, string $b = null);
Arguments
Name | Type(s) | Description |
---|---|---|
$a | string bool | Label or error message |
$b (optional) | string | Error if $a is a label, otherwise omit |
Return value
array
$4.0.7
$procache methods and properties
API reference based on ProcessWire core version 3.0.251