From within a view file:

$this->headScript()->appendFile(‘filename.js’);

From within a controller:

$this->view->headScript()->appendFile(‘filename.js’);

And then somewhere in your layout you need to echo out your headScript object:

<?=$this->headScript();?>

Posted in: Zend

Related FAQ's

Marius Ion ANGEL HOT SOFT LLC (800) 316-7677