fatal_error

Description

Stops execution and displays an error message.

Syntax

void fatal_error (string $error[, bool $log])



Parameter $error

Expected type: String
Description: The error message



Parameter $log

Expected type: Boolean
Description: Whether or not to log the error. Defaults to true.


Notes

  • Logs the error message if log is missing or true.
  • Uses the fatal_error sub template of the Errors template - or the error sub template in the Wireless template.
Advertisement: