Browse Source

Fixes #6925

tags/2.0.3
Alexander Makarov 10 years ago
parent
commit
6c1eead86e
  1. 2
      docs/guide/output-client-scripts.md

2
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

Loading…
Cancel
Save