1

I am trying include js bootstrap only on one view. How to do that? This does not work

$this->registerJsFile(yii\bootstrap\BootstrapPluginAsset::className());

1 Answer 1

4

In your view file just place the below line on top:

\yii\bootstrap\BootstrapPluginAsset::register($this);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.