Update view.php

This commit is contained in:
Anyon 2020-10-13 14:12:09 +08:00
parent 35b9b50b13
commit c065dad9a0

View File

@ -38,8 +38,8 @@ return [
'taglib_end' => '}',
// 定义模板替换字符串
'tpl_replace_string' => [
'__APP__' => rtrim(url('@')->build(), '\\/'),
'__ROOT__' => rtrim(dirname(request()->basefile()), '\\/'),
'__PUBLIC__' => rtrim(dirname(request()->basefile(true)), '\\/'),
'__APP__' => rtrim(url('@')->build(), '\\/'),
'__ROOT__' => rtrim(dirname(request()->basefile(false)), '\\/'),
'__HOST__' => rtrim(dirname(request()->basefile(true)), '\\/'),
],
];