public function init() { $this->_helper->contextSwitch()->addActionContext('error', 'json'); $this->_helper->contextSwitch()->addActionContext('login', 'json'); $this->_helper->contextSwitch()->addActionContext('logout', 'json'); $viewRenderer = Zend_Controller_Action_HelperBroker::getExistingHelper('viewRenderer'); $viewRenderer->setNoRender(); parent::init(); }
public function init() { $this->_helper->contextSwitch()->addActionContext('regenerate-images', 'json'); $this->_helper->contextSwitch()->addActionContext('regenerate-image', 'json'); $this->_helper->contextSwitch()->addActionContext('spider', 'json'); $this->_helper->contextSwitch()->addActionContext('update-all', 'json'); $this->_helper->contextSwitch()->addActionContext('migrate', 'json'); $this->_helper->contextSwitch()->addActionContext('bootstrap', 'json'); parent::init(); }