PHP code example of ereminmdev / yii2-notyf
1. Go to this page and download the library: Download ereminmdev/yii2-notyf 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/ */
ereminmdev / yii2-notyf example snippets
NotyfAsset::register($this);
$this->registerJs('
// Create an instance of Notyf
var notyf = new Notyf();
// Display an error notification
notyf.error("You must fill out the form before moving forward");
// Display a success notification
notyf.success("Your changes have been successfully saved!");
');