去掉 VIEW_PATH 常量定义

This commit is contained in:
thinkphp
2016-06-01 18:47:37 +08:00
parent ac0cb9be42
commit 3a154657e3
3 changed files with 6 additions and 8 deletions

View File

@@ -91,8 +91,8 @@ class Php
*/
private function parseTemplate($template)
{
if (empty($this->config['view_path']) && defined('VIEW_PATH')) {
$this->config['view_path'] = VIEW_PATH;
if (empty($this->config['view_path']) && defined('MODULE_PATH')) {
$this->config['view_path'] = MODULE_PATH . 'view' . DS;
}
if (strpos($template, '@')) {