Skip to content

Commit 7ea464c

Browse files
committed
Merge branch 'master' of https://github.com/top-think/think
2 parents 02d56fd + 3e392fe commit 7ea464c

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

application/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// +----------------------------------------------------------------------
1616

1717
// 应用调试模式
18-
'app_debug' => true,
18+
'app_debug' => false,
1919
// 应用Trace
2020
'app_trace' => false,
2121
// 应用模式状态

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
],
1818
"require": {
1919
"php": ">=5.4.0",
20-
"topthink/framework": "^5.0"
20+
"topthink/framework": "~5.0.0"
21+
},
22+
"autoload": {
23+
"psr-4": {
24+
"app\\": "application"
25+
}
2126
},
2227
"extra": {
2328
"think-path": "thinkphp"

public/router.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@
1313
if (is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["REQUEST_URI"])) {
1414
return false;
1515
} else {
16+
if (!isset($_SERVER['PATH_INFO'])) {
17+
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
18+
}
1619
require __DIR__ . "/index.php";
1720
}

0 commit comments

Comments
 (0)