Hi
I’ve been using Pjax but I can’t figure out how define parameters for an hyperlink in POST method.
Code below shows my code:
<?php Pjax::begin(['clientOptions' => ['method' => 'POST']]); ?>
<?= Html::a(Yii::t('app', 'Add to Carousel'), ['carousel/index', 'id' => $model->id, 'action' => 'Add'],['class' => 'btn btn-sm btn-primary']) ?>
<?php Pjax::end(); ?>
In other words, is there any way to submit ‘id’ and ‘action’ as post parameters?