YII not updating
Tried to GOOGLE but no difference.
public function actionEdit($id)
{
$model = AddMix::findOne($id);
if($model->load(Yii::$app->request->post()) && $model->save()){
Yii::$app->session->setFlash('detailssubmited');
return $this->redirect(['mixes','id'=>$model->id]);
}
return $this->render('editmix',['model'=>$model]);
}
It does not update instead it returns same view with changed value but not in database