3
Wie kann ich Pjax
in mit POST-Anfrage verwenden?Pjax in Yii 2 mit POST-Anfrage
Ich habe versucht, es so, aber Seite neu gestartet zu tun sowieso:
<?php Pjax::begin(['id' => 'some-id', 'clientOptions' => ['method' => 'POST']]);?>
...
some content
...
<?=Html::a('', ['cart/cart'],
['class'=>'close1',
'data' => [
'method' => 'post',
'params' => [
'idCartToDelete' => $product->idCart,
],
]
]
)
?>
...
some content
...
<?php Pjax::end(); ?>