Out of curiosity, why the resistence to subclassing the action controller?

-Matt

On 10/15/08, Steven Szymczak <[EMAIL PROTECTED]> wrote:
> Every one of my action controllers has an init() function that pulls a
> config object from the registry and uses it to set some paths used
> throughout the site (e.g.):
>
> public function init() {
>       $view_cfg = Zend_Registry::get('SITE_CFG');
>
>       $this->view->__set('pubImages', $view_cfg->dirs->images);
>       $this->view->__set('jsDir', $view_cfg->dirs->js);
>       $this->view->__set('cssDir', $view_cfg->dirs->css);
> }
>
> How can factor out this functionality without resorting to a parent
> class for all my action controllers?  I seem to recall a similar post to
> the list, several months ago, that suggested utilizing a helper somehow...
>
> Suggestions?
>

Reply via email to