From 3ac84240b64295ce4d1f9e6508ab7bc6891e90e0 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Tue, 28 May 2013 00:13:52 +0200 Subject: [PATCH] added note about dependency to registerJsFile Fixes #373 --- framework/yii/base/View.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/yii/base/View.php b/framework/yii/base/View.php index f0656d7..9d6b921 100644 --- a/framework/yii/base/View.php +++ b/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