Checkout::find()->where(["tm_done" => null]) ]); return $this->render("index", ["dataProvider" => $dataProvider]); } public function actionDone($id) { $checkout = Checkout::find()->where(["id" => $id])->one(); $checkout->tm_done = new Expression("NOW()"); $checkout->save(); return $this->redirect(["index"]); } }