PHP code example of elms / eflashmessage

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

    

elms / eflashmessage example snippets


$di->set('FlashController', function() use ($di) {
    $flashController = new \Anax\FlashMessages\FlashController();
    $flashController->setDI($di);
    return $flashController;
});

$app->msg->error('Error flash meddelande!!');