From 8896d56fa7ef72420431828e12017b61ccc85bb9 Mon Sep 17 00:00:00 2001 From: hail Date: Thu, 22 Apr 2021 15:54:27 +0800 Subject: [PATCH] split widgets --- README.md | 2 +- composer.json | 3 ++- src/views/layouts/sidebar.php | 2 +- src/views/site/index.php | 4 ++-- src/widgets/Alert.php | 5 +++++ src/widgets/Callout.php | 1 + src/widgets/FlashAlert.php | 1 + src/widgets/Menu.php | 1 + 8 files changed, 14 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 70fa971..3243fc7 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Copy files from @vendor/hail812/yii2-adminlte3/src/views to @app/views, then edi simply use: ```php - 'success', 'body' => '

Congratulations!

' ]) ?> diff --git a/composer.json b/composer.json index 6264075..11bd6a6 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,8 @@ "php": ">=7.0", "yiisoft/yii2": "~2.0.0", "yiisoft/yii2-bootstrap4": "~2.0.8", - "almasaeed2010/adminlte": "~3.1" + "almasaeed2010/adminlte": "~3.1", + "hail812/yii2-adminlte-widgets": "~1.0" }, "autoload": { "psr-4": { diff --git a/src/views/layouts/sidebar.php b/src/views/layouts/sidebar.php index f6f8de7..913f65c 100644 --- a/src/views/layouts/sidebar.php +++ b/src/views/layouts/sidebar.php @@ -33,7 +33,7 @@