tags:

views:

147

answers:

1
+1  A: 

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:

  1. Place script blocks in CClientScript::POS_HEAD and script links in CClientScript::POS_END.
  2. Inherit your own script manager from CClientScript.
Grey Teardrop
Thanks for the tips. I managed to get things rolling by changing links at POS_BEGIN (which was the start of the body).
Jason George