title: Bad Request (#400) - Missing required parameters: id in YII2
body: <p>I want to make a CRUD operation using GII Tool, but I get the error message <code>Missing required parameters: id</code>, when I try to save my post.</p>
  
  <p>Post controller:</p>
  
  <pre><code>public function actionCreate()
  {
      $model = new Post();
  
      if ($model-&gt;load(Yii::$app-&gt;request-&gt;post())) {
          $model-&gt;post_create_time=date('Y-m-d h:m:s');
          $model-&gt;save();
          return $this-&gt;redirect(['view', 'id' =&gt; $model-&gt;id_post]);
      } else {
          return $this-&gt;render('create', [
              'model' =&gt; $model,
          ]);
      }
  }
  </code></pre>
  
  <p>Why do I always get this error?</p>