logo       

Re: Error in the documentation: msg#00143

php.zend.framework.mvc

Subject: Re: Error in the documentation

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-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx> 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');
?>


|



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise