Yii frame small object check box passing value questions for advice. How can I pass the selected value of the page check box to a method of the controller? Do I need to use small objects? How can I implement ajax and js? For help ~ Teenagers
, I want to select all, or select some, and then pass the value to a method for the next operation.
Although a small object can be used to pass the value to the controller, it can only be passed to the current method.
So the question is
If my select () method is to view all the data, but if I want to pass the data to other methods for operations, how can I transfer it?
Kneel down.
The method I came up with is to pass the value to the current method, and then pass the received value to other methods for operation.
However, I think there should be a way to upload the method for operation, but beginners do not understand.
Reply to discussion (solution)
Puzzled. When you submit an action, you can directly obtain $ a = Yii: app ()-> request-> getPost ('name') in the actionAction () {} method in the background ');
$ A = array () // The value is an array.
1
2
What does this have to do with the framework ??
You must assign values to display widgets first. First, find out what functions you want to do and ask questions. I understand them literally. you just submit the check box and get the value in the background!
Puzzled. When you submit an action, you can directly obtain $ a = Yii: app ()-> request-> getPost ('name') in the actionAction () {} method in the background ');
$ A = array () // The value is an array.
1
2
What does this have to do with the framework ??
You must assign values to display widgets first. First, find out what functions you want to do and ask questions. I understand them literally. you just submit the check box and get the value in the background!
My God! I am so stupid. I understand how to do it. thank you for your answers !!!