From c6c0554b5d4c73131a03b74d90b7f9bedfbe10eb Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 19 Apr 2016 10:01:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E6=A8=A1=E6=9D=BF=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/view/driver/Php.php | 2 +- library/think/view/driver/Think.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library/think/view/driver/Php.php b/library/think/view/driver/Php.php index 51614f30..5911fc49 100644 --- a/library/think/view/driver/Php.php +++ b/library/think/view/driver/Php.php @@ -96,7 +96,7 @@ class Php $template = str_replace('.', DS, CONTROLLER_NAME) . $depr . $template; } } - return realpath($path) . DS . $template . $this->config['view_suffix']; + return $path . $template . $this->config['view_suffix']; } public function __call($method, $params) diff --git a/library/think/view/driver/Think.php b/library/think/view/driver/Think.php index d983f517..477d54cc 100644 --- a/library/think/view/driver/Think.php +++ b/library/think/view/driver/Think.php @@ -37,7 +37,7 @@ class Think /** * 渲染模板文件 * @access public - * @param string $template 模板文件或者内容 + * @param string $template 模板文件 * @param array $data 模板变量 * @param array $config 模板参数 * @return void @@ -60,7 +60,7 @@ class Think /** * 渲染模板内容 * @access public - * @param string $template 模板文件或者内容 + * @param string $template 模板内容 * @param array $data 模板变量 * @param array $config 模板参数 * @return void @@ -100,7 +100,7 @@ class Think $template = str_replace('.', DS, CONTROLLER_NAME) . $depr . $template; } } - return realpath($path) . DS . $template . $this->config['view_suffix']; + return $path . $template . $this->config['view_suffix']; } public function __call($method, $params)