* adjust for cache dao.

This commit is contained in:
wangyidong
2016-08-05 09:47:34 +08:00
parent e622618140
commit 2b4b2cb10e
2 changed files with 42 additions and 9 deletions
+2 -2
View File
@@ -56,12 +56,12 @@ if($config->requestType == 'PATH_INFO')
else
{
parse_str($request['query'], $_GET);
$_SERVER['SCRIPT_NAME'] = $_SERVER['HTTP_HOST'] . 'index.php';
$_SERVER['SCRIPT_NAME'] = $request['path'];
$_SERVER['REQUEST_URI'] = isset($request['query']) ? $request['query'] : '';
}
/* Instance the app and run it. */
$app = router::createApp('pms', dirname(dirname(__FILE__)));
$app = router::createApp('pms', dirname(dirname(__FILE__)), 'router');
$common = $app->loadCommon();
$app->parseRequest();
$app->loadModule();