Hi,
I couldn’t figure out what’s wrong in my case…
When I call
Yii::app()->clientScript->registerScriptFile('somescript.js')
it can actually output the script file:
......
<div id="footer"> </div>
<div class="overlay"></div>
</body>
</html><script type="text/javascript" src="/assets/80e38ef9/jquery.js"></script>
<script type="text/javascript" src="/assets/80e38ef9/jquery.yiiactiveform.js"></script>
As you see the script tag always render after the HTML tag… no luck with this
It should render right after the open <head> tag…
And one more question… what’s the different between using registerScriptFile() and CHtml::scriptFile()?
Please help me!! Thanks.