[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.