public function actionChange($id) { $model = Thirdproduct::findOne($id); Thirdproduct::updateAll(['status' => Thirdproduct::STATUS_INACTIVE, 'intent' => Thirdproduct::INTENT_CHECK], ['id' => $id]); return $this->redirect(['index']); }