Yii frame small object check box passing value questions for advice. -Php Tutorial

Source: Internet
Author: User
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 !!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.