开发者

Yii Custom Widget

开发者 https://www.devze.com 2023-04-01 13:22 出处:网络
I am trying to create a Yii widget that will generate Google Cha开发者_运维技巧rts (http://code.google.com/apis/chart).

I am trying to create a Yii widget that will generate Google Cha开发者_运维技巧rts (http://code.google.com/apis/chart).

How do I make a widget that writes code in both the html headers (where the javascript includes and stuff will be), and in the html body?


I found my answer:

Yii::app()->clientScript->registerScriptFile()

and

Yii::app()->clientScript->registerScript()
0

精彩评论

暂无评论...
验证码 换一张
取 消