统一controller类fetch方法的参数 和 view一致

This commit is contained in:
thinkphp
2016-03-02 22:50:34 +08:00
parent e86aa09de0
commit 0e6d985601

View File

@@ -84,12 +84,12 @@ class Controller
* @access public
* @param string $template 模板文件名
* @param array $vars 模板输出变量
* @param string $cache_id 模板缓存标识
* @param array $config 模板参数
* @return mixed
*/
public function fetch($template = '', $vars = [], $cache_id = '')
public function fetch($template = '', $vars = [], $config = [])
{
return $this->view->fetch($template, $vars, $cache_id);
return $this->view->fetch($template, $vars, $config);
}
/**