public function actionCambiar() { $model = proyectos::find()->where('id=:id', ['id' => $_GET["id"]])->one(); $model->estatus_did = $_GET['estatus']; if ($model->save()) { return $this->redirect('index'); } }