mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正View类的root解析
This commit is contained in:
@@ -40,7 +40,7 @@ class View
|
||||
// 基础替换字符串
|
||||
$request = Request::instance();
|
||||
$base = $request->root();
|
||||
$root = strpos($base, '.') ? dirname($base) : $base;
|
||||
$root = strpos($base, '.') ? ltrim(dirname($base), '\\') : $base;
|
||||
if ('' != $root) {
|
||||
$root = '/' . $root;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user