title: Yii2 : Bad Request (#400) Missing required parameters: id
body: <p><strong>My controller :</strong> </p>
  
  <pre><code>public function actionCreate()
      {
              $model = new CreateBookings();
  
              if ($model-&gt;load(Yii::$app-&gt;request-&gt;post())) 
              {
                  $imageName = $model-&gt;primary_name;
                  $model-&gt;file = UploadedFile::getInstance($model, 'file');
                  $model-&gt;file-&gt;saveAs('uploads/'.$imageName.'.'.$model-&gt;file-&gt;extension);
                  $model-&gt;id_image = 'uploads/'.$imageName.'.'.$model-&gt;file-&gt;extension;
                  $model-&gt;save();
  
                  return $this-&gt;redirect(['view', 'id' =&gt; $model-&gt;id]);
              } else 
              {
                  return $this-&gt;render('create', [
                      'model' =&gt; $model,
                  ]);
              }
  
      }
  </code></pre>
  
  <p>Getting this error on submitting my form, dont know what's wrong with it..
   Tried with <code>$model-&gt;save(false);</code> ..but not working as well</p>