[PHP] code function name question, please kindly advise

Source: Internet
Author: User
[PHP] code function name problem. please advise me to do a development in the template. This template uses code as the function name by default, however, I need to obtain the code passed by GET during development. These two codes have conflicts. please advise me how to handle them. The template uses the daily group buying system!


Reply to discussion (solution)

One is the function name and the other is the variable name?
There will be no conflict.

One is the function name and the other is the variable name?
There will be no conflict.



Because this template is accessed with the link xx.xx.com/index.php? Mod = subscribe & code = mail
Subscribe is the controller name. code is the method in the controller.
The passed URL is xx.xx.com//index.php? Mod = subscribe & code = 1111dc2f0cd9cd41f0ebf0f1b225bv & state = STATE

Code is a variable that comes with a url. remember not to duplicate the variable with this variable.

For code = 111111dc2f0cd9cd41f0ebf0f1b225bv in the next url
Apparently, the 111111dc2f0cd9cd41f0ebf0f1b225bv method does not exist. you can easily identify it during scheduling.

For code = 111111dc2f0cd9cd41f0ebf0f1b225bv in the next url
Apparently, the 111111dc2f0cd9cd41f0ebf0f1b225bv method does not exist. you can easily identify it during scheduling.




This code is a passed parameter. I need this GET value.

Code is a variable that comes with a url. remember not to duplicate the variable with this variable.



I don't want it either, but now it's a duplicate name.

I want to share with you the solution: create a file in the root directory and call back the file in the root directory when requesting code, note: When writing the callback link, add a field, that is, the link to your current page, so that you can receive your previous link when obtaining code in the root directory.

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.