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
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
没有评论:
发表评论