예제 #1
0
파일: Admin.php 프로젝트: rdallasgray/bbx
 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();
 }
예제 #2
0
파일: Tools.php 프로젝트: rdallasgray/bbx
 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();
 }