I have a package that requires Google Map library. And I implemented it like this in the view.
clientScript->registerScriptFile(\'
registerPackage() method don't have the any option to decide its position but you can decide position of registerScriptfile() like this ...
public CClientScript registerScript(string $id, string $script, integer $position=4)
$position integer the position of the JavaScript code. Valid values include the following: CClientScript::POS_HEAD : the script is inserted in the head section right before the title element. CClientScript::POS_BEGIN : the script is inserted at the beginning of the body section. CClientScript::POS_END : the script is inserted at the end of the body section. CClientScript::POS_LOAD : the script is inserted in the window.onload() function. CClientScript::POS_READY : the script is inserted in the jQuery's ready function.