As far as I can tell, CClientScript
keeps separate order of script blocks registered via registerScript()
and scripts registered via registerScriptFile()
. But it will always render registerScript()
after registerScriptFile()
. There are 2 possible ways to accomplish your task:
- Place script blocks in
CClientScript::POS_HEAD
and script links inCClientScript::POS_END
. - Inherit your own script manager from
CClientScript
.
Grey Teardrop
2010-08-22 11:04:06