Unless you need to interact with the actual controller object, I'd go with a
plugin. But sometimes you can have both -- Zend_Layout, for example, has
both a plugin and an action helper.

--
Hector


On Wed, Jun 2, 2010 at 8:08 PM, Enkhbilguun Erdenetsogt <
[email protected]> wrote:

> Hello,
>
> Within last several months, I wrote 2 layout loader script for module based
> applications. Yesterday, I eventually opened those at the same time and
> noticed one was sub-classed Zend_Controller_Action_Helper_Abstract and the
> other was sub-classed Zend_Controller_Plugin_Abstract. Both works well. I
> know I can directly use getRequest things with Action Helper and Plugin has
> some other advantages.
>
> I wonder which one is best for specific module, controller or action based
> layout loader?
>
>
> Thanks in advance.
>
>
>
> ------
> Enkhbilguun Erdenetsogt
>

Reply via email to