2008年9月9日星期二

[fw-mvc] ContextSwitch issue with Layout

Hello all,

Are plugins (or any other component for that matter) capable of re-enabling the layout after it has been disabled by contextSwitch helper?

I have this in one controller:

    public function init()
    {
        $context = $this->_helper->getHelper('contextSwitch');
        $context->addActionContext('view', 'json')->initContext();
    }
   
But the layout is not effectively disabled, so I have to manually disable it in my postDispatch action if the context is json

I'm using ZF 1.6


--
Ernesto

没有评论: