public function jsCode()
{
$jsencode = CJavascript::encode($this->options);
$code = <<<JSCODE
$("{$this->selector}").colorbox($jsencode);
JSCODE;
Yii::app()->getClientScript()->registerScript(__CLASS__ . '#' . $this->getId(),$code);
}
错误的地方在$jsencode = CJavascript::encode($this->options);
扩展继承的是CWidget
有时候没提示错误 有时候又提示错误
最后我干脆把web/hepler/CJavascript.php 复制到framework目录下就没提示了。 什么情况。。