In my app I have a php script that performs differently with different query strings, for example adding an "?action=<todo>" jumps to various subroutines. These subroutines call the script itself afterwards to show the default state after an action is performed.
Using the function "self_url()" I found that it calls the script again with the same action parameters. What is this good for?
As a workaround I added the function
function self_curl() # stand for clean url
{
global $PHP_SELF;
return $this->url($PHP_SELF);
}
Wouldn't it be a good idea to include this in the next release? I don't think that I am the only one who needs this functionality.
Regards
Thomas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello.
In my app I have a php script that performs differently with different query strings, for example adding an "?action=<todo>" jumps to various subroutines. These subroutines call the script itself afterwards to show the default state after an action is performed.
Using the function "self_url()" I found that it calls the script again with the same action parameters. What is this good for?
As a workaround I added the function
function self_curl() # stand for clean url
{
global $PHP_SELF;
return $this->url($PHP_SELF);
}
Wouldn't it be a good idea to include this in the next release? I don't think that I am the only one who needs this functionality.
Regards
Thomas