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.

Installs: 332

Dependents: 6

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.0 2017-12-14 22:59 UTC

This package is auto-updated.

Last update: 2024-10-14 00:00:06 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");