floor12 / yii2-module-files

Yii2 modul to add files to your models.
14 stars 19 forks source link

File Input Widget Views / Bootstrap 4 #13

Open juppwerner opened 2 years ago

juppwerner commented 2 years ago

Hello,

I tested this extension with a current installation of the Yii basic app template. This template is using Bootstrap 4.

So in these files:

vendor\floor12\yii2-module-files\src\components\views\multiFileInputWidget.php and

vendor\floor12\yii2-module-files\src\components\views\singleFileInputWidget.php

In the case of using Yii Bootstrap 4, you should replace yii\bootstrap\BootstrapPluginAsset with yii\bootstrap4\BootstrapPluginAsset?

Perhaps there are other occurrences of yii\bootstrap... .

Thank you.

Regards Joachim

floor12 commented 2 years ago

In a good way, we need to put this in the module settings, in its attributes. Can you pull a request for this change?

floor12 commented 2 years ago

You can easily inherit from this widget and make your own edits to work with bootstrap4.