PHP code example of met_mw / ssystemmessage
1. Go to this page and download the library: Download met_mw/ssystemmessage library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
met_mw / ssystemmessage example snippets
SystemMessage::i()
->addDanger('Error!')
->addInfo('Information.')
->addSuccess('Success!')
->addWarning('Warning!');
echo '<h1>System messages.</h1>';
SystemMessage::i()->printAll();
SystemMessageSession::i()
->addDanger('Error!')
->addInfo('Information.')
->addSuccess('Success!')
->addWarning('Warning!');
echo '<h1>System messages with using session.</h1>';
SystemMessageSession::i()->printAll();