aminkt / yii2-alert-widget
There is no license information available for the latest version (1.0.0) of this package.
Advanced Alert widget for yii2 applications.
Package info
github.com/aminkt/yii2-alert-widget
Type:yii2-extension
pkg:composer/aminkt/yii2-alert-widget
1.0.0
2017-12-14 22:59 UTC
Requires
- yiisoft/yii2: >=2.0.11
This package is auto-updated.
Last update: 2026-03-14 02:47:38 UTC
README
How to install this widget:
Step1: Run below command
composer require aminkt/yii2-alert-widget
Or add flowing line to require part of
composer.json:"aminkt/yii2-alert-widget": "*",And then run bellow command in your composer :
Composer update aminkt/yii2-bootstrap-ajax-modal-widget
Step2: Add flowing lines in your application view file:
<?php echo \aminkt\widgets\alert\Alert::widget() ?>
Note: You can use below methods to set an alert:
\aminkt\widgets\alert\Alert::success("Title", "Message"); \aminkt\widgets\alert\Alert::error("Title", "Message"); \aminkt\widgets\alert\Alert::warning("Title", "Message"); \aminkt\widgets\alert\Alert::info("Title", "Message");