I am trying with this code to update the record but there is no update,the old value is there.What is wrong?
the model is "CarInfo"
$model= \app\models\CarInfo::find()->where(['car_id'=>$id])->one();
if($model->load(Yii::$app->request->post()) && $model->save())
{ echo $model->kyvika;die();
//$model->save();
}
return $this->render('updatecar',array('model'=>$model));
At view:
$form = ActiveForm::begin([
'id' => 'car-info',
'options' => ['class' => 'form-horizontal'],
]) ........