改进Request和Url类 去掉base_url配置参数

This commit is contained in:
thinkphp
2016-05-20 14:11:13 +08:00
parent 685d7ef3b7
commit 626d0a2674
3 changed files with 47 additions and 32 deletions

View File

@@ -63,8 +63,6 @@ return [
'pathinfo_depr' => '/',
// 获取当前页面地址的系统变量 默认为REQUEST_URI
'url_request_uri' => 'REQUEST_URI',
// 基础URL路径
'base_url' => $_SERVER["SCRIPT_NAME"],
// URL伪静态后缀
'url_html_suffix' => '.html',
// URL普通方式参数 用于自动生成
@@ -211,7 +209,7 @@ return [
'paginate' => [
'type' => 'bootstrap',
'var_page' => 'page',
'list_rows' => 15
'list_rows' => 15,
],
];