Hello everyone,
Is there a reason why javascript doesn't show up in a view helper ?
I posted a view helper problem last week and worked on it without success after extended researchs. I'm starting to think it's a bug more than anything else.
Here's what's not working :
class Zend_View_Helper_Loginbox extends Zend_View_Helper_Partial
{
public function loginbox()
{
// this doesn't work, the file never gets included
$this->view->headScript()->appendFile('/scripts/js/myfile.js');
// neigher the content of my javascript function after this !!!
$this->view->dojo()->javascriptCaptureStart();
?>
dojo.addOnLoad(function(){
alert("it s not working");
});
<? $this->view->dojo()->javascriptCaptureEnd(); ?>
(...)
<?php
}
}
?>
Z.
--
http://myzendframeworkexperience.blogspot.com/
Téléchargez le nouveau Windows Live Messenger ! Téléchargez Messenger, c'est gratuit !
Tous vos amis discutent sur Messenger, et vous ? Téléchargez Messenger, c'est gratuit !
没有评论:
发表评论