From ec10e55eb74cf1a97408695076afb75d645e2114 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 23 Jan 2016 18:18:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BView=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/View.php b/library/think/View.php index 8413b7b4..185c9fab 100644 --- a/library/think/View.php +++ b/library/think/View.php @@ -201,7 +201,7 @@ class View private function parseTemplate($template) { if (is_file($template)) { - return $template; + return realpath($template); } $depr = $this->config['view_depr']; $template = str_replace(['/', ':'], $depr, $template);