title: Pjax in Yii 2 with POST request
body: <p>How can I use <code>Pjax</code> in <code>Yii 2</code> with POST request?</p>
  
  <p>I tried to do it like that but page restarts anyway:</p>
  
  <pre><code>&lt;?php Pjax::begin(['id' =&gt; 'some-id', 'clientOptions' =&gt; ['method' =&gt; 'POST']]);?&gt;
  
   ...
   some content
   ...
  
  &lt;?=Html::a('', ['cart/cart'],
                 ['class'=&gt;'close1',
                      'data' =&gt; [
                          'method' =&gt; 'post',
                          'params' =&gt; [
                              'idCartToDelete' =&gt; $product-&gt;idCart,
                           ],
                      ]
                  ]
            )
  ?&gt;
  
   ...
   some content
   ...
  
  &lt;?php Pjax::end(); ?&gt;
  </code></pre>