Answer the question
In order to leave comments, you need to log in
How to trigger an action when a button is clicked?
Tell me, let's say I have a button to delete a user from the database, now I do it like this - they hang a link to the delete view, I pass the parameter:
<a href="<?= Url::to(['/module/customers/delete','id' => $user->id]); ?>">Update</a>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question