From 95a32467a5f10ae890681ea175f06dce18f82f3b Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 16 Feb 2016 21:45:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=20=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=99=A8=E5=88=86=E5=B1=82=E7=9A=84=E8=A7=86=E5=9B=BE=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E5=AF=B9=E5=BA=94=20=E5=A6=82=E6=9E=9C=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E5=8C=BA=E5=88=86=E5=8F=AF=E4=BB=A5=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E4=BC=A0=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/View.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/View.php b/library/think/View.php index 4e884d5b..8731c38d 100644 --- a/library/think/View.php +++ b/library/think/View.php @@ -228,9 +228,9 @@ class View if (defined('CONTROLLER_NAME')) { if ('' == $template) { // 如果模板文件名为空 按照默认规则定位 - $template = CONTROLLER_NAME . $depr . ACTION_NAME; + $template = str_replace('.', DS, CONTROLLER_NAME) . $depr . ACTION_NAME; } elseif (false === strpos($template, $depr)) { - $template = CONTROLLER_NAME . $depr . $template; + $template = str_replace('.', DS, CONTROLLER_NAME) . $depr . $template; } } return THEME_PATH . $template . $this->config['view_suffix'];