public function actionBackbill() { if (isset($_POST['id'])) { $id = $_POST['id']; } if ($id != null) { Sell::updateAll(['status' => 0], 'id=:id', [':id' => $id]); } }