Yes! Thank you for the quick help.

But one thing to note down; calling with getHelper() method gives 1 Strict
Standards error "should not be called statically" and 1 Notice "Undefined
property: Zend_View_Helper_xUrl::$_actionController"

I think it's better to get with getStaticHelper() method.

Thank you again!


2008/10/22 Christian Münch - netz98 <[EMAIL PROTECTED]>

>  You can use the Zend_Controller_Action_HelperBroker to get an helper.
>
> i.E.
>
> $helper = Zend_Controller_Action_HelperBroker::getHelper('myHelper');
>
>  ------------------------------
> *From:* kirpit [mailto:[EMAIL PROTECTED]
> *Sent:* Wednesday, October 22, 2008 8:00 AM
> *To:* [email protected]
> *Subject:* [fw-general] How to use action helpers in view helpers
>
> Hi,
>
> I am just tring to use one of my action helper in a view helper. I've tried
> to get it through $view, Zend_Controller_Front also with Zend_Loader.
>
> I don't want to copy paste same code nor creating another file which will
> be agains "Don't Repeat Yourself". So can someone tell me the magic?
>
> Cheers.
>
>

Reply via email to