Skip to content

Commit

Permalink
BootstrapPluginAsset added to register in sidget views.
Browse files Browse the repository at this point in the history
  • Loading branch information
floor12 committed Apr 20, 2020
1 parent fdb0f6e commit dd68a40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/views/multiFileInputWidget.php
Expand Up @@ -20,6 +20,9 @@
use yii\db\ActiveRecord;
use yii\helpers\Html;
use yii\web\View;
use \yii\bootstrap\BootstrapPluginAsset;

BootstrapPluginAsset::register($this);

if (YII_ENV == 'test')
echo Html::fileInput('files', null, [
Expand Down
3 changes: 3 additions & 0 deletions src/components/views/singleFileInputWidget.php
Expand Up @@ -17,10 +17,13 @@
*/

use floor12\files\assets\IconHelper;
use yii\bootstrap\BootstrapPluginAsset;
use yii\db\ActiveRecord;
use yii\helpers\Html;
use yii\web\View;

BootstrapPluginAsset::register($this);

if (YII_ENV == 'test') // This code is only for testing
echo Html::fileInput('files', null, [
'id' => "files-upload-field-{$attribute}",
Expand Down

0 comments on commit dd68a40

Please sign in to comment.