is there a class to handle $_REQUEST
that makes the life of a php developer easier?
I want to handle the client requests easier.
I dont want to test with if(is_set($_REQUEST['blabla'])) {makesomthing();}
I wish there could be a solution like this.
class rpclike
{
public function getMember()
{
$memberid = $this->inputhandler['memberid'];
$member = $this->memberclass->getmember($memberid);
foreach($member as $mem)
{
echo $mem->id;
}
}
}
$rpc = new rpclike();
sonra ben böyle bir javascript gelen rpclike ararsanız
<a href="#" onclick="GETURL("rpclike.php?getMember&memberid=22")">Get member</a>
Böyle bir şey yapabilirim, hangi sınıf?