public function deleteuserAction() { $this->_helper->viewRenderer->setNoRender(); $this->_helper->getHelper("layout")->disableLayout(); $this->getFileUploadScript(); $aInputFilters = array("*" => array(new Zend_Filter_StringTrim())); $aInputValidators = array("id" => array(new Zend_Validate_Digits())); $bJson = false; $oInput = new Zend_Filter_Input($aInputFilters, $aInputValidators, $_POST); $nId = $oInput->getUnescaped("id"); $oModelUser = new Admin_Model_User(); if ($oModelUser->deleteRow($nId)) { $bJson = true; } header("Content-type: application/json"); echo Zend_Json::encode($bJson); exit; }