-- johannesf <[EMAIL PROTECTED]> wrote
(on Friday, 14 November 2008, 01:28 AM -0800):
> I have been struggling for a while now on this topic.
> 
> The question is: How do I call a view helper from some other view helper?

The easiest way is to extend Zend_View_Helper_Abstract, which will have
the functionality to allow Zend_View to inject the view object into the
helper:

    class My_View_Helper_Foo extends Zend_View_Helper_Abstract
    {
        ...
    }

Then, in your helper code, simply call the helper on the view property:

    $link = $this->view->url(...);

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to