public $cssFiles = array('*'//from where will you load this ???, '/css/');
public $jsFiles = array('*'//same ,'/js/');
The idea itself is bad, clientscript is good as it is right now, i don't see why complicate things.
If you want, you can always create a helper around CClientScript for these kind of things
Also "ClientScript::" syntax should be enabled instead of Yii::app()->getClientScript()->...
Why make the class methods static ?
Again, you can have your own ClientScript class helper with static methods if you'd like:
class ClientScript{
[...]
public static function registerScriptFile()
{
return call_user_func_array(Yii::app()->clientScript,__FUNCTION__,func_get_args());
}
public static function registerScript()
{
return call_user_func_array(Yii::app()->clientScript,__FUNCTION__,func_get_args());
}
[...]
}
And call
ClientScript::registerScriptFile('http://');
ClientScript::registerScript('my-script','alert(1);');