mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进模板文件路径
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user