PHP code example of flextype-components / notification

1. Go to this page and download the library: Download flextype-components/notification 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/ */

    

flextype-components / notification example snippets


use Flextype\Component\Notification\Notification;

Notification::init();

echo Notification::get('success');
echo Notification::get('errors');

Notification::set('success', 'Data has been saved with success!');
Notification::set('errors', 'Data not saved!');

Notification::setNow('success', 'Success!');

Notification::clean();