PHP code example of tasmaniski / zend-flash-noty-messenger
1. Go to this page and download the library: Download tasmaniski/zend-flash-noty-messenger 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/ */
tasmaniski / zend-flash-noty-messenger example snippets
/**
* The fire() method do
* Collect all messages from previous and current request
* clear current messages because we will show it
* add JS files
* add JS notifications
*/
$this->flashNoty()->fire();
// at the end of layout.phtml
/* fire all messages */
$this->flashNoty()->fire();
$this->flashMessenger()->addSuccessMessage('Success message, bravo!');
$this->flashMessenger()->addErrorMessage('Error with system, contact us.');
$this->flashMessenger()->addInfoMessage('Info message, to do whatever...');
$this->flashMessenger()->addWarningMessage('Warning message to be careful.');