public function delAction() { $userModel = new Admin_Model_User(); $user_id = intval($_POST['delusrid']); $userModel->removeID($user_id); $userRolesModel = new Admin_Model_UserRole(); $userRolesModel->remove(K_Db_Select::create()->where(array('usrol_user_id' => $user_id))); $returnJson = array('error' => false, 'msg' => '<strong>OK:</strong>Пользователь удалён'); $this->putJSON($returnJson); }