I am trying to use the yii2-dialog widget in this way:
echo Dialog::widget([
'libName' => 'krajeeDialogCust',
'useNative' => false
]);
echo Html::a(
'Stackoverflow',
'https://stackoverflow.com/',
[
'data-confirm' => 'Do you accept?',
]
);
But I get this error message:
The file or directory to be published does not exist: my-directory/vendor/bower/bootstrap3-dialog
The error message also shows:
DialogBootstrapAsset::register($view);
$this->registerAssets();
'libName' => 'krajeeDialogCust',
It works if I use this (but it doesn't use the widget):
'useNative' => true
The documentation doesn't talk about my problem but the widget's author give a solution that doesn't work for me.
I solved it installing bootstrap3-dialog:
sudo apt-get install npm
sudo npm install -g bower
bower install bootstrap-dialog
composer require kartik-v/yii2-dialog "@dev"