|
@@ -13,15 +13,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
+use think\facade\Config;
|
|
|
+use think\facade\Request;
|
|
|
+
|
|
|
return [
|
|
|
|
|
|
'strip_space' => true,
|
|
|
|
|
|
- 'tpl_cache' => !config('app_debug'),
|
|
|
+ 'tpl_cache' => !Config::get('app_debug'),
|
|
|
|
|
|
'tpl_replace_string' => [
|
|
|
- '__APP__' => rtrim(url('@'), '\\/'),
|
|
|
- '__ROOT__' => rtrim(dirname(request()->basefile()), '\\/'),
|
|
|
- '__PUBLIC__' => rtrim(dirname(request()->basefile(true)), '\\/'),
|
|
|
+ '__APP__' => rtrim(url('@'), '\\/'),
|
|
|
+ '__ROOT__' => rtrim(dirname(Request::basefile()), '\\/'),
|
|
|
+ '__FULL__' => rtrim(dirname(Request::basefile(true)), '\\/'),
|
|
|
],
|
|
|
];
|