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