【发布时间】:2011-11-06 11:01:14
【问题描述】:
我正在尝试在我的 zf 应用程序中实现内容流。并且在加载它的属性时,它需要定义一个额外的属性。
<script type="text/javascript" src=".." load="white"></script>
为了使用 zf 解释这个,我尝试了
$this -> headScript() -> appendFile("my/path/to/contentflow.js","text/javascript", array("load" => "white"));
但它不起作用。
如何做到这一点?
【问题讨论】:
-
“自定义属性”是什么意思 - 您是指 URL 中的参数吗?
-
@Pekka,不...我正在尝试使用zend框架
$this -> headScript() -> appendFile(...);获取<script type="text/javascript" src=".." load="white"></script>
标签: javascript zend-framework attributes