PHP code example of factorenergia / yii2-widget-alert
1. Go to this page and download the library: Download factorenergia/yii2-widget-alert 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/ */
factorenergia / yii2-widget-alert example snippets
use kartik\alert\Alert;
echo Alert::widget([
'type' => Alert::TYPE_INFO,
'title' => 'Note',
'titleOptions' => ['icon' => 'info-sign'],
'body' => 'This is an informative alert'
]);
use kartik\alert\AlertBlock;
echo AlertBlock::widget([
'type' => AlertBlock::TYPE_ALERT,
'useSessionFlash' => true
]);
$ php composer.phar
$ php composer.phar