
Diogo Souza da Silva - 2009-05-15 15:34:32 -
In reply to message 1 from John Smith
Hello,
I guess in this case you can do like this:
When creating the RestServer, pass the "q" to it:
$rest = new RestServer($_GET['q']);
This way when you map it, you can just do the following:
$rest->addMap("GET","/?get_temperature","CompetitionDetails::get_temperature");
On CompetitionDetails::get_temperature, you can recover the sID using the following line:
$sID = $rest->getRequest()->getGET("sID");
I guess that's it.