L
L
LightSid2016-11-11 16:04:35
Yii
LightSid, 2016-11-11 16:04:35

How to attach two handlers in ActiveForm?

Hello!
Such a situation, you need to do for one form, two buttons with different functionality.
How to do it right? Is it possible to somehow pass the get-parameter to the buttons?
For example, the first button to send '1', and the second '2'.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
padlyuck, 2016-11-11
@LightSid

Make 2 submit buttons with different names and in the controller check which one came.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question