public function disableuserAction() { $this->_helper->viewRenderer->setNoRender(); $this->_helper->getHelper("layout")->disableLayout(); $aInputFilters = array("*" => array(new Zend_Filter_StringTrim())); $aInputValidators = array("id" => array(new Zend_Validate_Digits())); $oInput = new Zend_Filter_Input($aInputFilters, $aInputValidators, $_POST); $nUserId = $oInput->getUnescaped("id"); $oModelUser = new Admin_Model_User(); $oModelVUser = new Admin_Model_VUser(); $bJson = $oModelUser->disableUser($nUserId); if ($bJson) { $sEmailAddress = $oModelUser->findEmailAddress($nUserId); $aParam = $oModelVUser->getUserParam($nUserId); $oMail = new AppCms2_Controller_Plugin_Mail(); $oMail->sendUserAccountDeactivation($sEmailAddress, $aParam); } header("Content-type: application/json"); echo Zend_Json::encode($bJson); exit; }