phabion
(Trinhduyhung1985)
1
Hello everyone!
I need to include a java script from another site like this:
<script type="text/javascript" src="http://www.vietbando.com/maps/API/VBDMapAPI.js?key=e7vjH+pgQHuSyV75dwG6htTwfYPMEaPVHQOH83PR6F="></script>
How do I use the yii way to implement above code?
Thanks in advanced!
rootbear
(Alex Xm)
2
Yii::app()->getClientScript()->registerScriptFile("http://www.vietbando.com/maps/API/VBDMapAPI.js?key=e7vjH+pgQHuSyV75dwG6htTwfYPMEaPVHQOH83PR6F=");
however, it’s no different than include manually for this particular one. since it’s some kind of dynamic content. no /assets/ created.
if it’s static js file from other site, it would be no differnt than your local copy. /assets/ copy created