修正空控制器名称和关键字冲突的问题

空控制器默认改为 Error 并且可以自定义 通过修改 empty_controller 参数
This commit is contained in:
thinkphp
2015-09-26 21:52:03 +08:00
parent 5c00b163ae
commit 9dcfeefb1f
4 changed files with 8 additions and 5 deletions

View File

@@ -105,7 +105,7 @@ class View {
* @param string $cache_id 模板缓存标识
* @return string
*/
public function fetch($template, $vars = [], $cache_id='',$renderContent=false) {
public function fetch($template='', $vars = [], $cache_id='',$renderContent=false) {
if(!$renderContent){
// 获取模板文件名
$template = $this->parseTemplate($template);