function DeletePost() { $obj = new BSC_posts($_POST["PostID"]); $res = $obj->Remove(); echo Response::createObjectiveResponse($res, ExceptionHandler::GetExceptionsToString()); die; }