2008年11月7日星期五

[fw-mvc] Dojo form not working on placeholders in layout file

Hi everyone,

I can't seem to get dojo to work on a placeholder located in my layout file.
The form is a simple login form that works fine. However when I try to put it in the placeholder the form shows but without dojo applying to it.
Here's an extract :

This doesn't work, on my index.phtml :

$login = new Login();
$this->placeholder('loginbox')->set($login);

Here's the target in my layout file :
<?php echo $this->placeholder('loginbox'); ?>

However this works fine in the index.phtml :
$login = new Login();
echo $login ;
 
Any idea how do deal with this bug ?

Thanks
Z.

--
Interested in php & zend framework ?
http://myzendframeworkexperience.blogspot.com/





Discutez gratuitement avec vos amis en vidéo ! Téléchargez Messenger, c'est gratuit !

没有评论:

发表评论