PHP code example of sarin / flash
1. Go to this page and download the library: Download sarin/flash 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/ */
sarin / flash example snippets
$flash = new \Sarin\Flash\Messages();
// Add flash message
$flash->add($key, $message);
// Check if flash messages exists for key
$flash->has($key);
// Get flash messages by key
$flash->get($key);
// Get all flash messages
$flash->getAll();