Returns an instance of Error
Singleton pattern implementation
static
Error
getInstance
()
Module constructor
Error
__construct
([BootAbstract $boot = null])
Create html page 404
void
show404
([string $str = ''])
-
string
$str: error message
Create html error message
string
showError
(string $msg, [string $error_title = null], [ $code = 500])
-
string
$msg: error message
-
string
$error_title: error title
-
$code
Create html error if module not exists
void
showErrorModule
(string $str)
Create html for information
string
showInfo
(string $text, [string $title = null])
-
string
$text
-
string
$title
Create error html if not allow
string
showNotAllow
()
Create html message by warning
type
showWarning
(string $msg, [string $title = null], [bool $back = false])
-
string
$msg
-
string
$title
-
bool
$back