A
A
AlexAll2019-01-09 14:59:32
Yii
AlexAll, 2019-01-09 14:59:32

DataTables.bootstrap.min.js and dataTables.bootstrap.css are not loaded in AdminLTE for yii2?

Installed AdminLTE, connected AdminLteAsset according to the instructions https://github.com/dmstr/yii2-adminlte-asset

use yii\web\AssetBundle;
class AdminLtePluginAsset extends AssetBundle
{
    public $sourcePath = '@vendor/almasaeed2010/adminlte/plugins';
    public $js = [
        'datatables/dataTables.bootstrap.min.js',
        // more plugin Js here
    ];
    public $css = [
        'datatables/dataTables.bootstrap.css',
        // more plugin CSS here
    ];
    public $depends = [
        'dmstr\web\AdminLteAsset',
    ];
}

Everything seems to work, but the debugger gives errors when loading dataTables.bootstrap.min.js and dataTables.bootstrap.css
And they definitely don’t exist, the instructions say
Assets for AdminLTE plugins are not included in our AdminLteAsset but you can find these files in your vendor directory under vendor/almasaeed2010/adminlte/plugins. So if you want to use any of them we recommend to create a custom bundle where you list the plugin files you need:

But here vendor/almasaeed2010/adminlte/plugins I didn't find them anywhere
Where can I get this js and css?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2019-01-10
@AlexAll

Here they are https://github.com/DataTables/DataTables install separately, perhaps they did not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question