title: How to Redirect from one view to another view with data - Yii2
body: <p>i want to pass 1 variables from a view to another view with post method. use this redirect code but its not working</p>
  
  <pre><code> Yii::$app-&gt;getResponse()-&gt;redirect('home','id'=&gt;$id)-&gt;send();
  </code></pre>