Browse Source

Modified js registration position.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
ad479dd7f6
  1. 3
      framework/yii/web/YiiAsset.php

3
framework/yii/web/YiiAsset.php

@ -8,6 +8,7 @@
namespace yii\web;
use Yii;
use yii\base\View;
/**
* @author Qiang Xue <qiang.xue@gmail.com>
@ -35,6 +36,6 @@ class YiiAsset extends AssetBundle
$js[] = "yii.csrfVar='{$request->csrfVar}';";
$js[] = "yii.csrfToken='{$request->csrfToken}';";
}
$view->registerJs(implode("\n", $js));
$view->registerJs(implode("\n", $js), View::POS_END);
}
}

Loading…
Cancel
Save