Browse Source

added note about dependency to registerJsFile

Fixes #373
tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
3ac84240b6
  1. 2
      framework/yii/base/View.php

2
framework/yii/base/View.php

@ -661,6 +661,8 @@ class View extends Component
/**
* Registers a JS file.
* Please note that when this file depends on other JS files to be registered before,
* for example jQuery, you should use [[registerAssetBundle]] instead.
* @param string $url the JS file to be registered.
* @param array $options the HTML attributes for the script tag. A special option
* named "position" is supported which specifies where the JS script tag should be inserted

Loading…
Cancel
Save