Answer the question
In order to leave comments, you need to log in
How to stay on the same page on the site when clicking on a link?
How to call an action without following the link?
now I have it like this:
<?= Html::a('Delivered', ['courier/delivered','id' => $courier->id], ['class' => 'btn btn-xs done' ]) ?>
This is a link following where it calls the action delivered by id and overwrites the value in the database.
I need it to pass the value but not follow the link.
Answer the question
In order to leave comments, you need to log in
How to stay on the same page on the site when clicking on a link?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question