改进view类 调整模板引擎的配置参数定义和传入方式

This commit is contained in:
thinkphp
2016-04-26 17:00:55 +08:00
parent 6e79350a79
commit 7c74dd9591
5 changed files with 60 additions and 94 deletions

View File

@@ -341,7 +341,7 @@ function trace($log = '[think]', $level = 'log')
*/
function view($template = '', $vars = [])
{
return View::instance(Config::get('view'))->fetch($template, $vars);
return View::instance(Config::get('template'))->fetch($template, $vars);
}
/**