Yeah that actually gave me headaches when I first started w/ the helpers :-p
On Wed, Jul 23, 2008 at 11:44 AM, Apsy <apsy.kopate@gmail.com> wrote:
There are some errors in the documentation :
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');
?>
|
没有评论:
发表评论