In the 48.12 Example :
http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.headscript
|<?php // Putting scripts in order
// place at a particular offset to ensure loaded last
$this->headScript()->offsetSetScript(100, '/js/myfuncs.js');
// use scriptaculous effects (append uses next index, 101)
$this->headScript()->appendScript('/js/scriptaculous.js');
// but always have base prototype script load first:
$this->headScript()->prependScript('/js/prototype.js');
?>
|
Should be :
|<?php // Putting scripts in order
// place at a particular offset to ensure loaded last
$this->headScript()->offsetSetFile(100, '/js/myfuncs.js');
// use scriptaculous effects (append uses next index, 101)
$this->headScript()->appendFile('/js/scriptaculous.js');
// but always have base prototype script load first:
$this->headScript()->prependFile('/js/prototype.js');
?>
|
没有评论:
发表评论