Aut*_*cus 0 php html-helper lithium
我们用的蛋糕
$这个 - > HTML的"脚本( 'jsfilenamewithdotjs');
将外部js文件添加到视图中我们如何使用锂来实现
echo $this->html->script('jquery.js');返回一个<script />标签.如果文件名带有前缀"/",则路径将相对于应用程序的基本路径.否则,路径通常是相对于JavaScript路径的webroot/js.
对于外部脚本 $this->html->script('http://foo.com/bar.js');
文档:http://li3.me/docs/lithium/template/helper/Html :: script()