Answer the question
In order to leave comments, you need to log in
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',
];
}
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:
Answer the question
In order to leave comments, you need to log in
Here they are https://github.com/DataTables/DataTables install separately, perhaps they did not.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question