Is it possible to use bootstrap js in a view without echoing a widget?
Is it possible to use bootstrap js in a view without echoing a widget?
As long as you load the script, sure.
For example if you want to use the Tabs you can do this :
...
<?php $this->registerAssetBundle(yii\bootstrap\BootstrapAsset::className(), yii\web::POS_END); ?>
It will register all the CSS and the JS of the Tab widget
You can do this if your AppAsset doesn’t depends on boostrap
Am I okay in doing the below or could it effect bootstrap widgets etc?
public $depends = [
'yii\web\YiiAsset',
'yii\bootstrap\BootstrapPluginAsset',
'\rmrevin\yii\fontawesome\AssetBundle',
];
It should work, the bootstrap javascript files should be registered in your view.