On 7 Nov 2008, at 11:06, Carlton Gibson wrote:
On 7 Nov 2008, at 10:33, Zladivliba Voskuy wrote:This is just a guess as I'm a YUI man myself but, one possibility is that because the placeholder is being rendered in the layout script whatever call is being made to the dojo view helper is occurring AFTER its stuff has already been added to the <head>. (Thus whatever dojo magic you're after doesn't happen.)
Sorry, new suggestion.
The simplest thing for you to do is to type cast the $login object as a string when you assign it to the placeholder. This causes it's __toString() method to be called (and so the required call to the dojo view helper as well):
In your index.phtml:
$login = new Login();
$this->placeholder('loginbox')->set( (string) $login );
Hopefully that works for you.
Carlton
没有评论:
发表评论