2008年11月7日星期五

Re: [fw-mvc] Getting dojo-> in a Zend_View_Helper

Zladivliba wrote:
>
>
>
> Is there a way to use dojo in a view helper ? I'm trying to set up a login
> box on all my pages, through a view helper, but with no success so far ;
> I'm trying this :
>
> class Zend_View_Helper_Loginbox extends Zend_View_Helper_Partial
> {
> public function loginbox()
> {
> $this->dojo()->javascriptCaptureStart(); ?>
>
> my xhr request ...
>
> <?php $this->dojo()->javascriptCaptureEnd(); }
> }
> ?>
> This of course throws me a Fatal error: Call to undefined method
> Zend_View_Helper_Loginbox::dojo()...
>
> Well, I'm pretty sure it's not the right way to do it but humm, what would
> be the right way ?
>
> --
> http://myzendframeworkexperience.blogspot.com/
>
>
>
> _________________________________________________________________
> Découvrez Windows Live Spaces et créez votre site Web perso en quelques
> clics !
> http://spaces.live.com/signup.aspx
>

Zladivliba,

I have not tried to do what you are doing with Dojo. I did want to have a
login form on several of my pages and I found that using an actionHelper
worked for me. Wherever I needed it I did something like the following:

<?php echo $this->action('login', 'user') ?>


I hope this helps.

Barry


--
View this message in context: http://www.nabble.com/Dojo-nested-tabContainer-not-displaying-tp20381223p20383743.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: