The preferred way to install this extension is through composer.
Either run
composer require --dev --prefer-dist yii2-extensions/asset-bootbox
or add
"yii2-extensions/asset-bootbox": "dev-main"
to the require-dev section of your composer.json
file.
<?php
declare(strict_types=1);
use Yii2\Asset\BootboxAsset;
use yii\helpers\Html;
BootboxAsset::register($this);
echo Html::a(
'Delete',
'#',
[
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
]
);
Check the documentation testing to learn about testing.
The MIT License. Please see License File for more information.