registerScriptTag() in the header


let me explain the problem first (if there is a straight solution please let me know)

i need to add a script tag in the header which is contain the following:


<script type="text/x-mathjax-config">


	// another code here





i cannot find a straight solution in Yii to accomplish this simple task

the only way i can think about is to override CClientScript::renderHead() and try to add this functionality manually.

i may take the same code as CHtml::tag() or CHtml::linkTag() and hack it to add this feature under for example CClientScript::registerScriptTag()

attaching new behavior to CHtml is better BUT we cannot attach any behavior into it since it is not a CComponent

thank you