In ActiveForm to attach two handlers?
This situation, you need to make to one form, two buttons with different functionality.
How to do it? Is it possible to pass buttons get parameter?
For example, the first button to transmit '1' and the second '2'.
July 2nd 19 at 17:41
How to debug JS when using XSLT with a bunch of frames?
How to put objective metrics on yii?
In Yii2 how to build queries in design view JOIN?
How to display a list and the additional text block on the screen?
How to optimize my code in Python?
As now the test Console?
How to link Google wallet to your account on the website?
How to arrange access for windows virtual machines on one ip for dns?
More answers about
"In ActiveForm to attach two handlers?"
July 2nd 19 at 17:43
Make 2 button sabmita with different names and in the controller check which one came.
And in what form the controller will receive a name?
commented on July 2nd 19 at 17:46
array (4) [
'City' => array (17) [
'name' => string (6) "Moscow"
'active' => string (1) "1"
'apply' => string (0) ""
'apply' just the name of our submission, which is pressed
commented on July 2nd 19 at 17:49
: A difficult print_r($_POST) to do? Or just in the debug panel to see how it comes. It's just faster than waiting for a response.
commented on July 2nd 19 at 17:52
commented on July 2nd 19 at 17:55
Find more questions by tags