public function init() { parent::init(); $this->_helper->viewRenderer->setNoRender(true); $this->_helper->AjaxContext()->addActionContext('get', 'json')->addActionContext('post', 'json')->addActionContext('new', 'json')->addActionContext('edit', 'json')->addActionContext('put', 'json')->addActionContext('delete', 'json')->initContext('json'); }