使用Slim 2框架从URI获取属性
http://localhost:8080/serverendModule1/v1/varifyi d = oq ==& code = 1E212FFC375E52A9C6E7DEBE8ADCC17ADCC17 用以下代码:
$app->get('/varify', function () use ($app) {
$id = $app->request->get('id');
$paramValue2 = $app->request->get('code');
$db = new DbOperation();
$response = array();
$db->userVarify($id, $code); // send to database
帮助我实现以下$ app->获取路线。
谢谢,我现在知道了'work
$ app-> get('/varify',function((use($ app({
$req = $app->request();
$id = $req->get('id'); //
$code = $req->get('code');
$db = new DbOperation();
$response = array();
$ res = $ db-> uservarify($ id,$ code(;}