PHP code example of languaojs / viper-flasher
1. Go to this page and download the library: Download languaojs/viper-flasher 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/ */
languaojs / viper-flasher example snippets
use Viper\Flasher\Flasher;
// Parameters: type (success, error, info, warning), message
Flasher::setFlash('success', 'Data saved successfully!');
use Viper\Flasher\Flasher;
Flasher::flash();