Свойство | Type | Description | |
---|---|---|---|
$_cssClasses | array |
Méthode | Description | |
---|---|---|
__construct ( array $cssClasses = [] ) | \ManaPHP\Flash constructor | |
error ( string $message ) : void | Shows a HTML error message | |
notice ( string $message ) : void | Shows a HTML notice/information message | |
output ( boolean $remove = true ) : void | Prints the messages in the session flasher | |
success ( string $message ) : void | Shows a HTML success message | |
warning ( string $message ) : void | Shows a HTML warning message |
public __construct ( array $cssClasses = [] ) | ||
$cssClasses | array |
$flash->error('This is an error');
$flash->notice('This is an information');
$flash->success('The process was finished successfully');
$flash->warning('Hey, this is important');