The problem I’m having at the moment is that ‘jquery-ui-1.7.2.custom.min.js’ is being added last. I am using a widget which registers a script file and this file depends on jQueryUI and therefore needs to be added after ‘jquery-ui-1.7.2.custom.min.js’.
So how do I get the two jQuery files to be included together, and all other additional scripts to be added at the end?
public void registerScriptFile(string $url, integer $position=0)
* 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.