diff --git a/docs/guide/output-client-scripts.md b/docs/guide/output-client-scripts.md index 05a629a..3f29067 100644 --- a/docs/guide/output-client-scripts.md +++ b/docs/guide/output-client-scripts.md @@ -30,7 +30,7 @@ instead of adding a new one. If you don't provide it, the JS code itself will be An external script can be added like the following: ```php -$this->registerJsFile('http://example.com/js/main.js', ['depends' => [JqueryAsset::className()]]); +$this->registerJsFile('http://example.com/js/main.js', ['depends' => [\yii\web\JqueryAsset::className()]]); ``` The arguments for [[yii\web\View::registerJsFile()|registerJsFile()]] are similar to those for