1. Go to this page and download the library: Download szmnmichalowski/szm-noty 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/ */
szmnmichalowski / szm-noty example snippets
$ php composer.phar update
return array(
'modules' => array(
'Zend\Session',
'SzmNotification' // <- Add this line
'SzmNoty' // <- Add this line
)
);
public function indexAction()
{
$this->notification()->add('info', 'This is info');
$this->notification()->add('success', 'This is success');
$this->notification()->add('warning', 'This is warning');
$this->notification()->add('error', 'This is error');
...
}