how to extend CClientScript.

I would like to extend the CClientScript with some more funcionality i have in mind and release it as an extension.

At the moment i have not dig the yii code to check where the Yii::app()->clientScript is iniatilized. Of course it will be easy to search and find out.

I was asking a yii dev or someone that has experience to share some key points on where to look at.

Thanks anyway.

In your main config, add the following component:


'clientScript' => array(

    'class' => 'MyCustomClientScript',

)

The same methodology is used to extend other application components.