public function travelcancelAction() { $this->getResponse()->setHeader('Content-Type', 'application/json'); $this->_helper->viewRenderer->setNoRender(true); $this->_helper->layout()->disableLayout(); $did = $this->_getParam('did'); $tid = $this->_getParam('tid'); try { Application_Model_M_DepartmentsTravelMap::delByDidAndTid($did, $tid); $out['errno'] = "0"; } catch (Zend_Db_Exception $e) { $out['errno'] = "1"; } Yy_Utils::jsonOut($out); }