I am trying to create a Yii widget that will generate google charts (http://code.google.com/apis/chart).
How to create a widget that writes code in html headers (where javascript will be included, etc.) and in the html tag?
I found my answer:
Yii::app()->clientScript->registerScriptFile()
and
Yii::app()->clientScript->registerScript()
Source: https://habr.com/ru/post/1369453/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1369448/how-to-programmatically-fill-in-web-forms-to-get-past-authentication-pages-in-ios&usg=ALkJrhhrzMJxSXCLz2M8IfAKAW3C0N9seASort Hashmap keys using numeric value descending - javaCannot access JSON object properties - jsonAndroid - SQLite database on SD card - androidIs there a file size limit on Android Honeycomb? - androidQuick Java string matching (to associate text with a category) - javaodata on silverlight only works in the user interface thread - odataSpam Prevention on RESTful JSON Webservice - securityProblem with jax-ws client - javaXcode4: linker error "bad codegen, pointer diff" again - c ++All Articles