统一后缀设置为不带点号

This commit is contained in:
thinkphp
2016-05-20 14:26:32 +08:00
parent 626d0a2674
commit 82eb899990
4 changed files with 13 additions and 12 deletions

View File

@@ -21,7 +21,7 @@ class Php
// 模板起始路径
'view_path' => '',
// 模板文件后缀
'view_suffix' => '.php',
'view_suffix' => 'php',
// 模板文件名分隔符
'view_depr' => DS,
];
@@ -109,7 +109,7 @@ class Php
$template = str_replace('.', DS, CONTROLLER_NAME) . $depr . $template;
}
}
return $path . $template . $this->config['view_suffix'];
return $path . $template . '.' . ltrim($this->config['view_suffix'], '.');
}
}